Module: Pago::V2026_04::Unions

Defined in:
lib/pago/v2026_04/unions.rb,
sig/pago/v2026_04/generated.rbs

Overview

Polymorphic schemas of the 2026-04 API.

Ruby has no union type, so a union is a factory module instead: call .from_json and get back the concrete model the payload describes. Tagged unions dispatch on their discriminator property; untagged ones fall back to matching the payload against the declared keys of each variant. An unrecognised payload is returned as a plain Hash rather than raising.

Defined Under Namespace

Modules: Benefit, BenefitCreate, BenefitGrantWebhook, CheckoutForbiddenError, CheckoutLinkCreate, CustomField, CustomFieldCreate, CustomFieldUpdate, Customer, CustomerBenefitGrant, CustomerBenefitGrantUpdate, CustomerCreate, CustomerPaymentMethod, CustomerPaymentMethodCreateResponse, CustomerState, CustomerSubscriptionUpdate, Discount, DiscountCreate, Event, FileCreate, FileRead, LegacyRecurringProductPrice, MetadataQuery, Payment, PaymentMethod, ProductCreate, ProductPrice, SubscriptionUpdate, SystemEvent