Class: Pago::V2026_04::Models::MetricsTotals

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])
{
  active_subscriptions: "active_subscriptions",
  committed_subscriptions: "committed_subscriptions",
  monthly_recurring_revenue: "monthly_recurring_revenue",
  trial_monthly_recurring_revenue: "trial_monthly_recurring_revenue",
  committed_monthly_recurring_revenue: "committed_monthly_recurring_revenue",
  trial_committed_monthly_recurring_revenue: "trial_committed_monthly_recurring_revenue",
  average_revenue_per_user: "average_revenue_per_user",
  checkouts: "checkouts",
  succeeded_checkouts: "succeeded_checkouts",
  churned_subscriptions: "churned_subscriptions",
  churn_rate: "churn_rate",
  seats_total: "seats_total",
  seats_claimed: "seats_claimed",
  seats_pending: "seats_pending",
  seat_customers: "seat_customers",
  new_seat_customers: "new_seat_customers",
  churned_seat_customers: "churned_seat_customers",
  orders: "orders",
  revenue: "revenue",
  net_revenue: "net_revenue",
  cumulative_revenue: "cumulative_revenue",
  net_cumulative_revenue: "net_cumulative_revenue",
  costs: "costs",
  cumulative_costs: "cumulative_costs",
  average_order_value: "average_order_value",
  net_average_order_value: "net_average_order_value",
  cost_per_user: "cost_per_user",
  active_user_by_event: "active_user_by_event",
  one_time_products: "one_time_products",
  one_time_products_revenue: "one_time_products_revenue",
  one_time_products_net_revenue: "one_time_products_net_revenue",
  new_subscriptions: "new_subscriptions",
  new_subscriptions_revenue: "new_subscriptions_revenue",
  new_subscriptions_net_revenue: "new_subscriptions_net_revenue",
  renewed_subscriptions: "renewed_subscriptions",
  renewed_subscriptions_revenue: "renewed_subscriptions_revenue",
  renewed_subscriptions_net_revenue: "renewed_subscriptions_net_revenue",
  canceled_subscriptions: "canceled_subscriptions",
  canceled_subscriptions_customer_service: "canceled_subscriptions_customer_service",
  canceled_subscriptions_low_quality: "canceled_subscriptions_low_quality",
  canceled_subscriptions_missing_features: "canceled_subscriptions_missing_features",
  canceled_subscriptions_switched_service: "canceled_subscriptions_switched_service",
  canceled_subscriptions_too_complex: "canceled_subscriptions_too_complex",
  canceled_subscriptions_too_expensive: "canceled_subscriptions_too_expensive",
  canceled_subscriptions_unused: "canceled_subscriptions_unused",
  canceled_subscriptions_other: "canceled_subscriptions_other",
  annual_recurring_revenue: "annual_recurring_revenue",
  committed_annual_recurring_revenue: "committed_annual_recurring_revenue",
  checkouts_conversion: "checkouts_conversion",
  ltv: "ltv",
  gross_margin: "gross_margin",
  gross_margin_percentage: "gross_margin_percentage",
  cashflow: "cashflow",
  average_seats_per_customer: "average_seats_per_customer",
  seat_utilization_rate: "seat_utilization_rate"
}.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(active_subscriptions: ::Pago::UNSET, committed_subscriptions: ::Pago::UNSET, monthly_recurring_revenue: ::Pago::UNSET, trial_monthly_recurring_revenue: ::Pago::UNSET, committed_monthly_recurring_revenue: ::Pago::UNSET, trial_committed_monthly_recurring_revenue: ::Pago::UNSET, average_revenue_per_user: ::Pago::UNSET, checkouts: ::Pago::UNSET, succeeded_checkouts: ::Pago::UNSET, churned_subscriptions: ::Pago::UNSET, churn_rate: ::Pago::UNSET, seats_total: ::Pago::UNSET, seats_claimed: ::Pago::UNSET, seats_pending: ::Pago::UNSET, seat_customers: ::Pago::UNSET, new_seat_customers: ::Pago::UNSET, churned_seat_customers: ::Pago::UNSET, orders: ::Pago::UNSET, revenue: ::Pago::UNSET, net_revenue: ::Pago::UNSET, cumulative_revenue: ::Pago::UNSET, net_cumulative_revenue: ::Pago::UNSET, costs: ::Pago::UNSET, cumulative_costs: ::Pago::UNSET, average_order_value: ::Pago::UNSET, net_average_order_value: ::Pago::UNSET, cost_per_user: ::Pago::UNSET, active_user_by_event: ::Pago::UNSET, one_time_products: ::Pago::UNSET, one_time_products_revenue: ::Pago::UNSET, one_time_products_net_revenue: ::Pago::UNSET, new_subscriptions: ::Pago::UNSET, new_subscriptions_revenue: ::Pago::UNSET, new_subscriptions_net_revenue: ::Pago::UNSET, renewed_subscriptions: ::Pago::UNSET, renewed_subscriptions_revenue: ::Pago::UNSET, renewed_subscriptions_net_revenue: ::Pago::UNSET, canceled_subscriptions: ::Pago::UNSET, canceled_subscriptions_customer_service: ::Pago::UNSET, canceled_subscriptions_low_quality: ::Pago::UNSET, canceled_subscriptions_missing_features: ::Pago::UNSET, canceled_subscriptions_switched_service: ::Pago::UNSET, canceled_subscriptions_too_complex: ::Pago::UNSET, canceled_subscriptions_too_expensive: ::Pago::UNSET, canceled_subscriptions_unused: ::Pago::UNSET, canceled_subscriptions_other: ::Pago::UNSET, annual_recurring_revenue: ::Pago::UNSET, committed_annual_recurring_revenue: ::Pago::UNSET, checkouts_conversion: ::Pago::UNSET, ltv: ::Pago::UNSET, gross_margin: ::Pago::UNSET, gross_margin_percentage: ::Pago::UNSET, cashflow: ::Pago::UNSET, average_seats_per_customer: ::Pago::UNSET, seat_utilization_rate: ::Pago::UNSET) ⇒ MetricsTotals

Returns a new instance of MetricsTotals.

Parameters:

  • active_subscriptions: (Object) (defaults to: ::Pago::UNSET)
  • committed_subscriptions: (Object) (defaults to: ::Pago::UNSET)
  • monthly_recurring_revenue: (Object) (defaults to: ::Pago::UNSET)
  • trial_monthly_recurring_revenue: (Object) (defaults to: ::Pago::UNSET)
  • committed_monthly_recurring_revenue: (Object) (defaults to: ::Pago::UNSET)
  • trial_committed_monthly_recurring_revenue: (Object) (defaults to: ::Pago::UNSET)
  • average_revenue_per_user: (Object) (defaults to: ::Pago::UNSET)
  • checkouts: (Object) (defaults to: ::Pago::UNSET)
  • succeeded_checkouts: (Object) (defaults to: ::Pago::UNSET)
  • churned_subscriptions: (Object) (defaults to: ::Pago::UNSET)
  • churn_rate: (Object) (defaults to: ::Pago::UNSET)
  • seats_total: (Object) (defaults to: ::Pago::UNSET)
  • seats_claimed: (Object) (defaults to: ::Pago::UNSET)
  • seats_pending: (Object) (defaults to: ::Pago::UNSET)
  • seat_customers: (Object) (defaults to: ::Pago::UNSET)
  • new_seat_customers: (Object) (defaults to: ::Pago::UNSET)
  • churned_seat_customers: (Object) (defaults to: ::Pago::UNSET)
  • orders: (Object) (defaults to: ::Pago::UNSET)
  • revenue: (Object) (defaults to: ::Pago::UNSET)
  • net_revenue: (Object) (defaults to: ::Pago::UNSET)
  • cumulative_revenue: (Object) (defaults to: ::Pago::UNSET)
  • net_cumulative_revenue: (Object) (defaults to: ::Pago::UNSET)
  • costs: (Object) (defaults to: ::Pago::UNSET)
  • cumulative_costs: (Object) (defaults to: ::Pago::UNSET)
  • average_order_value: (Object) (defaults to: ::Pago::UNSET)
  • net_average_order_value: (Object) (defaults to: ::Pago::UNSET)
  • cost_per_user: (Object) (defaults to: ::Pago::UNSET)
  • active_user_by_event: (Object) (defaults to: ::Pago::UNSET)
  • one_time_products: (Object) (defaults to: ::Pago::UNSET)
  • one_time_products_revenue: (Object) (defaults to: ::Pago::UNSET)
  • one_time_products_net_revenue: (Object) (defaults to: ::Pago::UNSET)
  • new_subscriptions: (Object) (defaults to: ::Pago::UNSET)
  • new_subscriptions_revenue: (Object) (defaults to: ::Pago::UNSET)
  • new_subscriptions_net_revenue: (Object) (defaults to: ::Pago::UNSET)
  • renewed_subscriptions: (Object) (defaults to: ::Pago::UNSET)
  • renewed_subscriptions_revenue: (Object) (defaults to: ::Pago::UNSET)
  • renewed_subscriptions_net_revenue: (Object) (defaults to: ::Pago::UNSET)
  • canceled_subscriptions: (Object) (defaults to: ::Pago::UNSET)
  • canceled_subscriptions_customer_service: (Object) (defaults to: ::Pago::UNSET)
  • canceled_subscriptions_low_quality: (Object) (defaults to: ::Pago::UNSET)
  • canceled_subscriptions_missing_features: (Object) (defaults to: ::Pago::UNSET)
  • canceled_subscriptions_switched_service: (Object) (defaults to: ::Pago::UNSET)
  • canceled_subscriptions_too_complex: (Object) (defaults to: ::Pago::UNSET)
  • canceled_subscriptions_too_expensive: (Object) (defaults to: ::Pago::UNSET)
  • canceled_subscriptions_unused: (Object) (defaults to: ::Pago::UNSET)
  • canceled_subscriptions_other: (Object) (defaults to: ::Pago::UNSET)
  • annual_recurring_revenue: (Object) (defaults to: ::Pago::UNSET)
  • committed_annual_recurring_revenue: (Object) (defaults to: ::Pago::UNSET)
  • checkouts_conversion: (Object) (defaults to: ::Pago::UNSET)
  • ltv: (Object) (defaults to: ::Pago::UNSET)
  • gross_margin: (Object) (defaults to: ::Pago::UNSET)
  • gross_margin_percentage: (Object) (defaults to: ::Pago::UNSET)
  • cashflow: (Object) (defaults to: ::Pago::UNSET)
  • average_seats_per_customer: (Object) (defaults to: ::Pago::UNSET)
  • seat_utilization_rate: (Object) (defaults to: ::Pago::UNSET)


31212
31213
31214
31215
31216
31217
31218
31219
31220
31221
31222
31223
31224
31225
31226
31227
31228
31229
31230
31231
31232
31233
31234
31235
31236
31237
31238
31239
31240
31241
31242
31243
31244
31245
31246
31247
31248
31249
31250
31251
31252
31253
31254
31255
31256
31257
31258
31259
31260
31261
31262
31263
31264
31265
31266
31267
31268
31269
31270
31271
31272
31273
31274
31275
31276
31277
31278
31279
31280
31281
31282
31283
31284
31285
31286
31287
31288
31289
31290
31291
31292
31293
31294
31295
31296
31297
31298
31299
31300
31301
31302
31303
31304
31305
31306
31307
31308
31309
31310
31311
31312
31313
31314
31315
31316
31317
31318
31319
31320
31321
31322
31323
31324
31325
# File 'lib/pago/v2026_04/models.rb', line 31212

def initialize(
  active_subscriptions: ::Pago::UNSET,
  committed_subscriptions: ::Pago::UNSET,
  monthly_recurring_revenue: ::Pago::UNSET,
  trial_monthly_recurring_revenue: ::Pago::UNSET,
  committed_monthly_recurring_revenue: ::Pago::UNSET,
  trial_committed_monthly_recurring_revenue: ::Pago::UNSET,
  average_revenue_per_user: ::Pago::UNSET,
  checkouts: ::Pago::UNSET,
  succeeded_checkouts: ::Pago::UNSET,
  churned_subscriptions: ::Pago::UNSET,
  churn_rate: ::Pago::UNSET,
  seats_total: ::Pago::UNSET,
  seats_claimed: ::Pago::UNSET,
  seats_pending: ::Pago::UNSET,
  seat_customers: ::Pago::UNSET,
  new_seat_customers: ::Pago::UNSET,
  churned_seat_customers: ::Pago::UNSET,
  orders: ::Pago::UNSET,
  revenue: ::Pago::UNSET,
  net_revenue: ::Pago::UNSET,
  cumulative_revenue: ::Pago::UNSET,
  net_cumulative_revenue: ::Pago::UNSET,
  costs: ::Pago::UNSET,
  cumulative_costs: ::Pago::UNSET,
  average_order_value: ::Pago::UNSET,
  net_average_order_value: ::Pago::UNSET,
  cost_per_user: ::Pago::UNSET,
  active_user_by_event: ::Pago::UNSET,
  one_time_products: ::Pago::UNSET,
  one_time_products_revenue: ::Pago::UNSET,
  one_time_products_net_revenue: ::Pago::UNSET,
  new_subscriptions: ::Pago::UNSET,
  new_subscriptions_revenue: ::Pago::UNSET,
  new_subscriptions_net_revenue: ::Pago::UNSET,
  renewed_subscriptions: ::Pago::UNSET,
  renewed_subscriptions_revenue: ::Pago::UNSET,
  renewed_subscriptions_net_revenue: ::Pago::UNSET,
  canceled_subscriptions: ::Pago::UNSET,
  canceled_subscriptions_customer_service: ::Pago::UNSET,
  canceled_subscriptions_low_quality: ::Pago::UNSET,
  canceled_subscriptions_missing_features: ::Pago::UNSET,
  canceled_subscriptions_switched_service: ::Pago::UNSET,
  canceled_subscriptions_too_complex: ::Pago::UNSET,
  canceled_subscriptions_too_expensive: ::Pago::UNSET,
  canceled_subscriptions_unused: ::Pago::UNSET,
  canceled_subscriptions_other: ::Pago::UNSET,
  annual_recurring_revenue: ::Pago::UNSET,
  committed_annual_recurring_revenue: ::Pago::UNSET,
  checkouts_conversion: ::Pago::UNSET,
  ltv: ::Pago::UNSET,
  gross_margin: ::Pago::UNSET,
  gross_margin_percentage: ::Pago::UNSET,
  cashflow: ::Pago::UNSET,
  average_seats_per_customer: ::Pago::UNSET,
  seat_utilization_rate: ::Pago::UNSET
)
  super()
  assign(:active_subscriptions, active_subscriptions)
  assign(:committed_subscriptions, committed_subscriptions)
  assign(:monthly_recurring_revenue, monthly_recurring_revenue)
  assign(:trial_monthly_recurring_revenue, trial_monthly_recurring_revenue)
  assign(:committed_monthly_recurring_revenue, committed_monthly_recurring_revenue)
  assign(:trial_committed_monthly_recurring_revenue, trial_committed_monthly_recurring_revenue)
  assign(:average_revenue_per_user, average_revenue_per_user)
  assign(:checkouts, checkouts)
  assign(:succeeded_checkouts, succeeded_checkouts)
  assign(:churned_subscriptions, churned_subscriptions)
  assign(:churn_rate, churn_rate)
  assign(:seats_total, seats_total)
  assign(:seats_claimed, seats_claimed)
  assign(:seats_pending, seats_pending)
  assign(:seat_customers, seat_customers)
  assign(:new_seat_customers, new_seat_customers)
  assign(:churned_seat_customers, churned_seat_customers)
  assign(:orders, orders)
  assign(:revenue, revenue)
  assign(:net_revenue, net_revenue)
  assign(:cumulative_revenue, cumulative_revenue)
  assign(:net_cumulative_revenue, net_cumulative_revenue)
  assign(:costs, costs)
  assign(:cumulative_costs, cumulative_costs)
  assign(:average_order_value, average_order_value)
  assign(:net_average_order_value, net_average_order_value)
  assign(:cost_per_user, cost_per_user)
  assign(:active_user_by_event, active_user_by_event)
  assign(:one_time_products, one_time_products)
  assign(:one_time_products_revenue, one_time_products_revenue)
  assign(:one_time_products_net_revenue, one_time_products_net_revenue)
  assign(:new_subscriptions, new_subscriptions)
  assign(:new_subscriptions_revenue, new_subscriptions_revenue)
  assign(:new_subscriptions_net_revenue, new_subscriptions_net_revenue)
  assign(:renewed_subscriptions, renewed_subscriptions)
  assign(:renewed_subscriptions_revenue, renewed_subscriptions_revenue)
  assign(:renewed_subscriptions_net_revenue, renewed_subscriptions_net_revenue)
  assign(:canceled_subscriptions, canceled_subscriptions)
  assign(:canceled_subscriptions_customer_service, canceled_subscriptions_customer_service)
  assign(:canceled_subscriptions_low_quality, canceled_subscriptions_low_quality)
  assign(:canceled_subscriptions_missing_features, canceled_subscriptions_missing_features)
  assign(:canceled_subscriptions_switched_service, canceled_subscriptions_switched_service)
  assign(:canceled_subscriptions_too_complex, canceled_subscriptions_too_complex)
  assign(:canceled_subscriptions_too_expensive, canceled_subscriptions_too_expensive)
  assign(:canceled_subscriptions_unused, canceled_subscriptions_unused)
  assign(:canceled_subscriptions_other, canceled_subscriptions_other)
  assign(:annual_recurring_revenue, annual_recurring_revenue)
  assign(:committed_annual_recurring_revenue, committed_annual_recurring_revenue)
  assign(:checkouts_conversion, checkouts_conversion)
  assign(:ltv, ltv)
  assign(:gross_margin, gross_margin)
  assign(:gross_margin_percentage, gross_margin_percentage)
  assign(:cashflow, cashflow)
  assign(:average_seats_per_customer, average_seats_per_customer)
  assign(:seat_utilization_rate, seat_utilization_rate)
end

Instance Attribute Details

#active_subscriptionsInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31048
31049
31050
# File 'lib/pago/v2026_04/models.rb', line 31048

def active_subscriptions
  @active_subscriptions
end

#active_user_by_eventInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31129
31130
31131
# File 'lib/pago/v2026_04/models.rb', line 31129

def active_user_by_event
  @active_user_by_event
end

#annual_recurring_revenueInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31186
31187
31188
# File 'lib/pago/v2026_04/models.rb', line 31186

def annual_recurring_revenue
  @annual_recurring_revenue
end

#average_order_valueInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31120
31121
31122
# File 'lib/pago/v2026_04/models.rb', line 31120

def average_order_value
  @average_order_value
end

#average_revenue_per_userInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31066
31067
31068
# File 'lib/pago/v2026_04/models.rb', line 31066

def average_revenue_per_user
  @average_revenue_per_user
end

#average_seats_per_customerInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31207
31208
31209
# File 'lib/pago/v2026_04/models.rb', line 31207

def average_seats_per_customer
  @average_seats_per_customer
end

#canceled_subscriptionsInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31159
31160
31161
# File 'lib/pago/v2026_04/models.rb', line 31159

def canceled_subscriptions
  @canceled_subscriptions
end

#canceled_subscriptions_customer_serviceInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31162
31163
31164
# File 'lib/pago/v2026_04/models.rb', line 31162

def canceled_subscriptions_customer_service
  @canceled_subscriptions_customer_service
end

#canceled_subscriptions_low_qualityInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31165
31166
31167
# File 'lib/pago/v2026_04/models.rb', line 31165

def canceled_subscriptions_low_quality
  @canceled_subscriptions_low_quality
end

#canceled_subscriptions_missing_featuresInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31168
31169
31170
# File 'lib/pago/v2026_04/models.rb', line 31168

def canceled_subscriptions_missing_features
  @canceled_subscriptions_missing_features
end

#canceled_subscriptions_otherInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31183
31184
31185
# File 'lib/pago/v2026_04/models.rb', line 31183

def canceled_subscriptions_other
  @canceled_subscriptions_other
end

#canceled_subscriptions_switched_serviceInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31171
31172
31173
# File 'lib/pago/v2026_04/models.rb', line 31171

def canceled_subscriptions_switched_service
  @canceled_subscriptions_switched_service
end

#canceled_subscriptions_too_complexInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31174
31175
31176
# File 'lib/pago/v2026_04/models.rb', line 31174

def canceled_subscriptions_too_complex
  @canceled_subscriptions_too_complex
end

#canceled_subscriptions_too_expensiveInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31177
31178
31179
# File 'lib/pago/v2026_04/models.rb', line 31177

def canceled_subscriptions_too_expensive
  @canceled_subscriptions_too_expensive
end

#canceled_subscriptions_unusedInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31180
31181
31182
# File 'lib/pago/v2026_04/models.rb', line 31180

def canceled_subscriptions_unused
  @canceled_subscriptions_unused
end

#cashflowInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31204
31205
31206
# File 'lib/pago/v2026_04/models.rb', line 31204

def cashflow
  @cashflow
end

#checkoutsInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31069
31070
31071
# File 'lib/pago/v2026_04/models.rb', line 31069

def checkouts
  @checkouts
end

#checkouts_conversionInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31192
31193
31194
# File 'lib/pago/v2026_04/models.rb', line 31192

def checkouts_conversion
  @checkouts_conversion
end

#churn_rateInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31078
31079
31080
# File 'lib/pago/v2026_04/models.rb', line 31078

def churn_rate
  @churn_rate
end

#churned_seat_customersInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31096
31097
31098
# File 'lib/pago/v2026_04/models.rb', line 31096

def churned_seat_customers
  @churned_seat_customers
end

#churned_subscriptionsInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31075
31076
31077
# File 'lib/pago/v2026_04/models.rb', line 31075

def churned_subscriptions
  @churned_subscriptions
end

#committed_annual_recurring_revenueInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31189
31190
31191
# File 'lib/pago/v2026_04/models.rb', line 31189

def committed_annual_recurring_revenue
  @committed_annual_recurring_revenue
end

#committed_monthly_recurring_revenueInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31060
31061
31062
# File 'lib/pago/v2026_04/models.rb', line 31060

def committed_monthly_recurring_revenue
  @committed_monthly_recurring_revenue
end

#committed_subscriptionsInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31051
31052
31053
# File 'lib/pago/v2026_04/models.rb', line 31051

def committed_subscriptions
  @committed_subscriptions
end

#cost_per_userInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31126
31127
31128
# File 'lib/pago/v2026_04/models.rb', line 31126

def cost_per_user
  @cost_per_user
end

#costsInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31114
31115
31116
# File 'lib/pago/v2026_04/models.rb', line 31114

def costs
  @costs
end

#cumulative_costsInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31117
31118
31119
# File 'lib/pago/v2026_04/models.rb', line 31117

def cumulative_costs
  @cumulative_costs
end

#cumulative_revenueInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31108
31109
31110
# File 'lib/pago/v2026_04/models.rb', line 31108

def cumulative_revenue
  @cumulative_revenue
end

#gross_marginInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31198
31199
31200
# File 'lib/pago/v2026_04/models.rb', line 31198

def gross_margin
  @gross_margin
end

#gross_margin_percentageInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31201
31202
31203
# File 'lib/pago/v2026_04/models.rb', line 31201

def gross_margin_percentage
  @gross_margin_percentage
end

#ltvInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31195
31196
31197
# File 'lib/pago/v2026_04/models.rb', line 31195

def ltv
  @ltv
end

#monthly_recurring_revenueInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31054
31055
31056
# File 'lib/pago/v2026_04/models.rb', line 31054

def monthly_recurring_revenue
  @monthly_recurring_revenue
end

#net_average_order_valueInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31123
31124
31125
# File 'lib/pago/v2026_04/models.rb', line 31123

def net_average_order_value
  @net_average_order_value
end

#net_cumulative_revenueInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31111
31112
31113
# File 'lib/pago/v2026_04/models.rb', line 31111

def net_cumulative_revenue
  @net_cumulative_revenue
end

#net_revenueInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31105
31106
31107
# File 'lib/pago/v2026_04/models.rb', line 31105

def net_revenue
  @net_revenue
end

#new_seat_customersInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31093
31094
31095
# File 'lib/pago/v2026_04/models.rb', line 31093

def new_seat_customers
  @new_seat_customers
end

#new_subscriptionsInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31141
31142
31143
# File 'lib/pago/v2026_04/models.rb', line 31141

def new_subscriptions
  @new_subscriptions
end

#new_subscriptions_net_revenueInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31147
31148
31149
# File 'lib/pago/v2026_04/models.rb', line 31147

def new_subscriptions_net_revenue
  @new_subscriptions_net_revenue
end

#new_subscriptions_revenueInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31144
31145
31146
# File 'lib/pago/v2026_04/models.rb', line 31144

def new_subscriptions_revenue
  @new_subscriptions_revenue
end

#one_time_productsInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31132
31133
31134
# File 'lib/pago/v2026_04/models.rb', line 31132

def one_time_products
  @one_time_products
end

#one_time_products_net_revenueInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31138
31139
31140
# File 'lib/pago/v2026_04/models.rb', line 31138

def one_time_products_net_revenue
  @one_time_products_net_revenue
end

#one_time_products_revenueInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31135
31136
31137
# File 'lib/pago/v2026_04/models.rb', line 31135

def one_time_products_revenue
  @one_time_products_revenue
end

#ordersInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31099
31100
31101
# File 'lib/pago/v2026_04/models.rb', line 31099

def orders
  @orders
end

#renewed_subscriptionsInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31150
31151
31152
# File 'lib/pago/v2026_04/models.rb', line 31150

def renewed_subscriptions
  @renewed_subscriptions
end

#renewed_subscriptions_net_revenueInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31156
31157
31158
# File 'lib/pago/v2026_04/models.rb', line 31156

def renewed_subscriptions_net_revenue
  @renewed_subscriptions_net_revenue
end

#renewed_subscriptions_revenueInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31153
31154
31155
# File 'lib/pago/v2026_04/models.rb', line 31153

def renewed_subscriptions_revenue
  @renewed_subscriptions_revenue
end

#revenueInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31102
31103
31104
# File 'lib/pago/v2026_04/models.rb', line 31102

def revenue
  @revenue
end

#seat_customersInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31090
31091
31092
# File 'lib/pago/v2026_04/models.rb', line 31090

def seat_customers
  @seat_customers
end

#seat_utilization_rateInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31210
31211
31212
# File 'lib/pago/v2026_04/models.rb', line 31210

def seat_utilization_rate
  @seat_utilization_rate
end

#seats_claimedInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31084
31085
31086
# File 'lib/pago/v2026_04/models.rb', line 31084

def seats_claimed
  @seats_claimed
end

#seats_pendingInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31087
31088
31089
# File 'lib/pago/v2026_04/models.rb', line 31087

def seats_pending
  @seats_pending
end

#seats_totalInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31081
31082
31083
# File 'lib/pago/v2026_04/models.rb', line 31081

def seats_total
  @seats_total
end

#succeeded_checkoutsInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31072
31073
31074
# File 'lib/pago/v2026_04/models.rb', line 31072

def succeeded_checkouts
  @succeeded_checkouts
end

#trial_committed_monthly_recurring_revenueInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31063
31064
31065
# File 'lib/pago/v2026_04/models.rb', line 31063

def trial_committed_monthly_recurring_revenue
  @trial_committed_monthly_recurring_revenue
end

#trial_monthly_recurring_revenueInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


31057
31058
31059
# File 'lib/pago/v2026_04/models.rb', line 31057

def trial_monthly_recurring_revenue
  @trial_monthly_recurring_revenue
end

Class Method Details

.from_json(data) ⇒ MetricsTotals?

Parameters:

  • data (Hash, String, nil)

Returns:



31329
31330
31331
31332
31333
31334
31335
31336
31337
31338
31339
31340
31341
31342
31343
31344
31345
31346
31347
31348
31349
31350
31351
31352
31353
31354
31355
31356
31357
31358
31359
31360
31361
31362
31363
31364
31365
31366
31367
31368
31369
31370
31371
31372
31373
31374
31375
31376
31377
31378
31379
31380
31381
31382
31383
31384
31385
31386
31387
31388
31389
31390
31391
31392
31393
31394
# File 'lib/pago/v2026_04/models.rb', line 31329

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(
      active_subscriptions: (data.key?("active_subscriptions") ? data["active_subscriptions"] : ::Pago::UNSET),
      committed_subscriptions: (data.key?("committed_subscriptions") ? data["committed_subscriptions"] : ::Pago::UNSET),
      monthly_recurring_revenue: (data.key?("monthly_recurring_revenue") ? data["monthly_recurring_revenue"] : ::Pago::UNSET),
      trial_monthly_recurring_revenue: (data.key?("trial_monthly_recurring_revenue") ? data["trial_monthly_recurring_revenue"] : ::Pago::UNSET),
      committed_monthly_recurring_revenue: (data.key?("committed_monthly_recurring_revenue") ? data["committed_monthly_recurring_revenue"] : ::Pago::UNSET),
      trial_committed_monthly_recurring_revenue: (data.key?("trial_committed_monthly_recurring_revenue") ? data["trial_committed_monthly_recurring_revenue"] : ::Pago::UNSET),
      average_revenue_per_user: (data.key?("average_revenue_per_user") ? data["average_revenue_per_user"] : ::Pago::UNSET),
      checkouts: (data.key?("checkouts") ? data["checkouts"] : ::Pago::UNSET),
      succeeded_checkouts: (data.key?("succeeded_checkouts") ? data["succeeded_checkouts"] : ::Pago::UNSET),
      churned_subscriptions: (data.key?("churned_subscriptions") ? data["churned_subscriptions"] : ::Pago::UNSET),
      churn_rate: (data.key?("churn_rate") ? data["churn_rate"] : ::Pago::UNSET),
      seats_total: (data.key?("seats_total") ? data["seats_total"] : ::Pago::UNSET),
      seats_claimed: (data.key?("seats_claimed") ? data["seats_claimed"] : ::Pago::UNSET),
      seats_pending: (data.key?("seats_pending") ? data["seats_pending"] : ::Pago::UNSET),
      seat_customers: (data.key?("seat_customers") ? data["seat_customers"] : ::Pago::UNSET),
      new_seat_customers: (data.key?("new_seat_customers") ? data["new_seat_customers"] : ::Pago::UNSET),
      churned_seat_customers: (data.key?("churned_seat_customers") ? data["churned_seat_customers"] : ::Pago::UNSET),
      orders: (data.key?("orders") ? data["orders"] : ::Pago::UNSET),
      revenue: (data.key?("revenue") ? data["revenue"] : ::Pago::UNSET),
      net_revenue: (data.key?("net_revenue") ? data["net_revenue"] : ::Pago::UNSET),
      cumulative_revenue: (data.key?("cumulative_revenue") ? data["cumulative_revenue"] : ::Pago::UNSET),
      net_cumulative_revenue: (data.key?("net_cumulative_revenue") ? data["net_cumulative_revenue"] : ::Pago::UNSET),
      costs: (data.key?("costs") ? data["costs"] : ::Pago::UNSET),
      cumulative_costs: (data.key?("cumulative_costs") ? data["cumulative_costs"] : ::Pago::UNSET),
      average_order_value: (data.key?("average_order_value") ? data["average_order_value"] : ::Pago::UNSET),
      net_average_order_value: (data.key?("net_average_order_value") ? data["net_average_order_value"] : ::Pago::UNSET),
      cost_per_user: (data.key?("cost_per_user") ? data["cost_per_user"] : ::Pago::UNSET),
      active_user_by_event: (data.key?("active_user_by_event") ? data["active_user_by_event"] : ::Pago::UNSET),
      one_time_products: (data.key?("one_time_products") ? data["one_time_products"] : ::Pago::UNSET),
      one_time_products_revenue: (data.key?("one_time_products_revenue") ? data["one_time_products_revenue"] : ::Pago::UNSET),
      one_time_products_net_revenue: (data.key?("one_time_products_net_revenue") ? data["one_time_products_net_revenue"] : ::Pago::UNSET),
      new_subscriptions: (data.key?("new_subscriptions") ? data["new_subscriptions"] : ::Pago::UNSET),
      new_subscriptions_revenue: (data.key?("new_subscriptions_revenue") ? data["new_subscriptions_revenue"] : ::Pago::UNSET),
      new_subscriptions_net_revenue: (data.key?("new_subscriptions_net_revenue") ? data["new_subscriptions_net_revenue"] : ::Pago::UNSET),
      renewed_subscriptions: (data.key?("renewed_subscriptions") ? data["renewed_subscriptions"] : ::Pago::UNSET),
      renewed_subscriptions_revenue: (data.key?("renewed_subscriptions_revenue") ? data["renewed_subscriptions_revenue"] : ::Pago::UNSET),
      renewed_subscriptions_net_revenue: (data.key?("renewed_subscriptions_net_revenue") ? data["renewed_subscriptions_net_revenue"] : ::Pago::UNSET),
      canceled_subscriptions: (data.key?("canceled_subscriptions") ? data["canceled_subscriptions"] : ::Pago::UNSET),
      canceled_subscriptions_customer_service: (data.key?("canceled_subscriptions_customer_service") ? data["canceled_subscriptions_customer_service"] : ::Pago::UNSET),
      canceled_subscriptions_low_quality: (data.key?("canceled_subscriptions_low_quality") ? data["canceled_subscriptions_low_quality"] : ::Pago::UNSET),
      canceled_subscriptions_missing_features: (data.key?("canceled_subscriptions_missing_features") ? data["canceled_subscriptions_missing_features"] : ::Pago::UNSET),
      canceled_subscriptions_switched_service: (data.key?("canceled_subscriptions_switched_service") ? data["canceled_subscriptions_switched_service"] : ::Pago::UNSET),
      canceled_subscriptions_too_complex: (data.key?("canceled_subscriptions_too_complex") ? data["canceled_subscriptions_too_complex"] : ::Pago::UNSET),
      canceled_subscriptions_too_expensive: (data.key?("canceled_subscriptions_too_expensive") ? data["canceled_subscriptions_too_expensive"] : ::Pago::UNSET),
      canceled_subscriptions_unused: (data.key?("canceled_subscriptions_unused") ? data["canceled_subscriptions_unused"] : ::Pago::UNSET),
      canceled_subscriptions_other: (data.key?("canceled_subscriptions_other") ? data["canceled_subscriptions_other"] : ::Pago::UNSET),
      annual_recurring_revenue: (data.key?("annual_recurring_revenue") ? data["annual_recurring_revenue"] : ::Pago::UNSET),
      committed_annual_recurring_revenue: (data.key?("committed_annual_recurring_revenue") ? data["committed_annual_recurring_revenue"] : ::Pago::UNSET),
      checkouts_conversion: (data.key?("checkouts_conversion") ? data["checkouts_conversion"] : ::Pago::UNSET),
      ltv: (data.key?("ltv") ? data["ltv"] : ::Pago::UNSET),
      gross_margin: (data.key?("gross_margin") ? data["gross_margin"] : ::Pago::UNSET),
      gross_margin_percentage: (data.key?("gross_margin_percentage") ? data["gross_margin_percentage"] : ::Pago::UNSET),
      cashflow: (data.key?("cashflow") ? data["cashflow"] : ::Pago::UNSET),
      average_seats_per_customer: (data.key?("average_seats_per_customer") ? data["average_seats_per_customer"] : ::Pago::UNSET),
      seat_utilization_rate: (data.key?("seat_utilization_rate") ? data["seat_utilization_rate"] : ::Pago::UNSET)
    ),
    data
  )
end