Class: Pago::V2026_04::Models::MetricPeriod

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])
{
  timestamp: "timestamp",
  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])
["timestamp"].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(timestamp:, 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) ⇒ MetricPeriod

Returns a new instance of MetricPeriod.

Parameters:

  • timestamp: (String)
  • 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)


30197
30198
30199
30200
30201
30202
30203
30204
30205
30206
30207
30208
30209
30210
30211
30212
30213
30214
30215
30216
30217
30218
30219
30220
30221
30222
30223
30224
30225
30226
30227
30228
30229
30230
30231
30232
30233
30234
30235
30236
30237
30238
30239
30240
30241
30242
30243
30244
30245
30246
30247
30248
30249
30250
30251
30252
30253
30254
30255
30256
30257
30258
30259
30260
30261
30262
30263
30264
30265
30266
30267
30268
30269
30270
30271
30272
30273
30274
30275
30276
30277
30278
30279
30280
30281
30282
30283
30284
30285
30286
30287
30288
30289
30290
30291
30292
30293
30294
30295
30296
30297
30298
30299
30300
30301
30302
30303
30304
30305
30306
30307
30308
30309
30310
30311
30312
# File 'lib/pago/v2026_04/models.rb', line 30197

def initialize(
  timestamp:,
  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(:timestamp, timestamp)
  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)


30033
30034
30035
# File 'lib/pago/v2026_04/models.rb', line 30033

def active_subscriptions
  @active_subscriptions
end

#active_user_by_eventInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30114
30115
30116
# File 'lib/pago/v2026_04/models.rb', line 30114

def active_user_by_event
  @active_user_by_event
end

#annual_recurring_revenueInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30171
30172
30173
# File 'lib/pago/v2026_04/models.rb', line 30171

def annual_recurring_revenue
  @annual_recurring_revenue
end

#average_order_valueInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30105
30106
30107
# File 'lib/pago/v2026_04/models.rb', line 30105

def average_order_value
  @average_order_value
end

#average_revenue_per_userInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30051
30052
30053
# File 'lib/pago/v2026_04/models.rb', line 30051

def average_revenue_per_user
  @average_revenue_per_user
end

#average_seats_per_customerInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30192
30193
30194
# File 'lib/pago/v2026_04/models.rb', line 30192

def average_seats_per_customer
  @average_seats_per_customer
end

#canceled_subscriptionsInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30144
30145
30146
# File 'lib/pago/v2026_04/models.rb', line 30144

def canceled_subscriptions
  @canceled_subscriptions
end

#canceled_subscriptions_customer_serviceInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30147
30148
30149
# File 'lib/pago/v2026_04/models.rb', line 30147

def canceled_subscriptions_customer_service
  @canceled_subscriptions_customer_service
end

#canceled_subscriptions_low_qualityInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30150
30151
30152
# File 'lib/pago/v2026_04/models.rb', line 30150

def canceled_subscriptions_low_quality
  @canceled_subscriptions_low_quality
end

#canceled_subscriptions_missing_featuresInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30153
30154
30155
# File 'lib/pago/v2026_04/models.rb', line 30153

def canceled_subscriptions_missing_features
  @canceled_subscriptions_missing_features
end

#canceled_subscriptions_otherInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30168
30169
30170
# File 'lib/pago/v2026_04/models.rb', line 30168

def canceled_subscriptions_other
  @canceled_subscriptions_other
end

#canceled_subscriptions_switched_serviceInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30156
30157
30158
# File 'lib/pago/v2026_04/models.rb', line 30156

def canceled_subscriptions_switched_service
  @canceled_subscriptions_switched_service
end

#canceled_subscriptions_too_complexInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30159
30160
30161
# File 'lib/pago/v2026_04/models.rb', line 30159

def canceled_subscriptions_too_complex
  @canceled_subscriptions_too_complex
end

#canceled_subscriptions_too_expensiveInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30162
30163
30164
# File 'lib/pago/v2026_04/models.rb', line 30162

def canceled_subscriptions_too_expensive
  @canceled_subscriptions_too_expensive
end

#canceled_subscriptions_unusedInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30165
30166
30167
# File 'lib/pago/v2026_04/models.rb', line 30165

def canceled_subscriptions_unused
  @canceled_subscriptions_unused
end

#cashflowInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30189
30190
30191
# File 'lib/pago/v2026_04/models.rb', line 30189

def cashflow
  @cashflow
end

#checkoutsInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30054
30055
30056
# File 'lib/pago/v2026_04/models.rb', line 30054

def checkouts
  @checkouts
end

#checkouts_conversionInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30177
30178
30179
# File 'lib/pago/v2026_04/models.rb', line 30177

def checkouts_conversion
  @checkouts_conversion
end

#churn_rateInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30063
30064
30065
# File 'lib/pago/v2026_04/models.rb', line 30063

def churn_rate
  @churn_rate
end

#churned_seat_customersInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30081
30082
30083
# File 'lib/pago/v2026_04/models.rb', line 30081

def churned_seat_customers
  @churned_seat_customers
end

#churned_subscriptionsInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30060
30061
30062
# File 'lib/pago/v2026_04/models.rb', line 30060

def churned_subscriptions
  @churned_subscriptions
end

#committed_annual_recurring_revenueInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30174
30175
30176
# File 'lib/pago/v2026_04/models.rb', line 30174

def committed_annual_recurring_revenue
  @committed_annual_recurring_revenue
end

#committed_monthly_recurring_revenueInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30045
30046
30047
# File 'lib/pago/v2026_04/models.rb', line 30045

def committed_monthly_recurring_revenue
  @committed_monthly_recurring_revenue
end

#committed_subscriptionsInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30036
30037
30038
# File 'lib/pago/v2026_04/models.rb', line 30036

def committed_subscriptions
  @committed_subscriptions
end

#cost_per_userInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30111
30112
30113
# File 'lib/pago/v2026_04/models.rb', line 30111

def cost_per_user
  @cost_per_user
end

#costsInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30099
30100
30101
# File 'lib/pago/v2026_04/models.rb', line 30099

def costs
  @costs
end

#cumulative_costsInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30102
30103
30104
# File 'lib/pago/v2026_04/models.rb', line 30102

def cumulative_costs
  @cumulative_costs
end

#cumulative_revenueInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30093
30094
30095
# File 'lib/pago/v2026_04/models.rb', line 30093

def cumulative_revenue
  @cumulative_revenue
end

#gross_marginInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30183
30184
30185
# File 'lib/pago/v2026_04/models.rb', line 30183

def gross_margin
  @gross_margin
end

#gross_margin_percentageInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30186
30187
30188
# File 'lib/pago/v2026_04/models.rb', line 30186

def gross_margin_percentage
  @gross_margin_percentage
end

#ltvInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30180
30181
30182
# File 'lib/pago/v2026_04/models.rb', line 30180

def ltv
  @ltv
end

#monthly_recurring_revenueInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30039
30040
30041
# File 'lib/pago/v2026_04/models.rb', line 30039

def monthly_recurring_revenue
  @monthly_recurring_revenue
end

#net_average_order_valueInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30108
30109
30110
# File 'lib/pago/v2026_04/models.rb', line 30108

def net_average_order_value
  @net_average_order_value
end

#net_cumulative_revenueInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30096
30097
30098
# File 'lib/pago/v2026_04/models.rb', line 30096

def net_cumulative_revenue
  @net_cumulative_revenue
end

#net_revenueInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30090
30091
30092
# File 'lib/pago/v2026_04/models.rb', line 30090

def net_revenue
  @net_revenue
end

#new_seat_customersInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30078
30079
30080
# File 'lib/pago/v2026_04/models.rb', line 30078

def new_seat_customers
  @new_seat_customers
end

#new_subscriptionsInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30126
30127
30128
# File 'lib/pago/v2026_04/models.rb', line 30126

def new_subscriptions
  @new_subscriptions
end

#new_subscriptions_net_revenueInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30132
30133
30134
# File 'lib/pago/v2026_04/models.rb', line 30132

def new_subscriptions_net_revenue
  @new_subscriptions_net_revenue
end

#new_subscriptions_revenueInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30129
30130
30131
# File 'lib/pago/v2026_04/models.rb', line 30129

def new_subscriptions_revenue
  @new_subscriptions_revenue
end

#one_time_productsInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30117
30118
30119
# File 'lib/pago/v2026_04/models.rb', line 30117

def one_time_products
  @one_time_products
end

#one_time_products_net_revenueInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30123
30124
30125
# File 'lib/pago/v2026_04/models.rb', line 30123

def one_time_products_net_revenue
  @one_time_products_net_revenue
end

#one_time_products_revenueInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30120
30121
30122
# File 'lib/pago/v2026_04/models.rb', line 30120

def one_time_products_revenue
  @one_time_products_revenue
end

#ordersInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30084
30085
30086
# File 'lib/pago/v2026_04/models.rb', line 30084

def orders
  @orders
end

#renewed_subscriptionsInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30135
30136
30137
# File 'lib/pago/v2026_04/models.rb', line 30135

def renewed_subscriptions
  @renewed_subscriptions
end

#renewed_subscriptions_net_revenueInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30141
30142
30143
# File 'lib/pago/v2026_04/models.rb', line 30141

def renewed_subscriptions_net_revenue
  @renewed_subscriptions_net_revenue
end

#renewed_subscriptions_revenueInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30138
30139
30140
# File 'lib/pago/v2026_04/models.rb', line 30138

def renewed_subscriptions_revenue
  @renewed_subscriptions_revenue
end

#revenueInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30087
30088
30089
# File 'lib/pago/v2026_04/models.rb', line 30087

def revenue
  @revenue
end

#seat_customersInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30075
30076
30077
# File 'lib/pago/v2026_04/models.rb', line 30075

def seat_customers
  @seat_customers
end

#seat_utilization_rateInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30195
30196
30197
# File 'lib/pago/v2026_04/models.rb', line 30195

def seat_utilization_rate
  @seat_utilization_rate
end

#seats_claimedInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30069
30070
30071
# File 'lib/pago/v2026_04/models.rb', line 30069

def seats_claimed
  @seats_claimed
end

#seats_pendingInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30072
30073
30074
# File 'lib/pago/v2026_04/models.rb', line 30072

def seats_pending
  @seats_pending
end

#seats_totalInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30066
30067
30068
# File 'lib/pago/v2026_04/models.rb', line 30066

def seats_total
  @seats_total
end

#succeeded_checkoutsInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30057
30058
30059
# File 'lib/pago/v2026_04/models.rb', line 30057

def succeeded_checkouts
  @succeeded_checkouts
end

#timestampString (readonly)

Timestamp of this period data.

Returns:

  • (String)


30030
30031
30032
# File 'lib/pago/v2026_04/models.rb', line 30030

def timestamp
  @timestamp
end

#trial_committed_monthly_recurring_revenueInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30048
30049
30050
# File 'lib/pago/v2026_04/models.rb', line 30048

def trial_committed_monthly_recurring_revenue
  @trial_committed_monthly_recurring_revenue
end

#trial_monthly_recurring_revenueInteger, ... (readonly)

Returns:

  • (Integer, Float, nil)


30042
30043
30044
# File 'lib/pago/v2026_04/models.rb', line 30042

def trial_monthly_recurring_revenue
  @trial_monthly_recurring_revenue
end

Class Method Details

.from_json(data) ⇒ MetricPeriod?

Parameters:

  • data (Hash, String, nil)

Returns:



30316
30317
30318
30319
30320
30321
30322
30323
30324
30325
30326
30327
30328
30329
30330
30331
30332
30333
30334
30335
30336
30337
30338
30339
30340
30341
30342
30343
30344
30345
30346
30347
30348
30349
30350
30351
30352
30353
30354
30355
30356
30357
30358
30359
30360
30361
30362
30363
30364
30365
30366
30367
30368
30369
30370
30371
30372
30373
30374
30375
30376
30377
30378
30379
30380
30381
30382
# File 'lib/pago/v2026_04/models.rb', line 30316

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(
      timestamp: (data.key?("timestamp") ? data["timestamp"] : ::Pago::UNSET),
      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