Class: Whop_sdk::Types::PaymentInstructions

Inherits:
Internal::Types::Model show all
Extended by:
Internal::Types::Union
Defined in:
lib/whop_sdk/types/payment_instructions.rb

Overview

What to show the buyer so they can pay. kind picks the shape and the details sit under the key named for it, so switching on kind gives you exactly that kind's payload. Every detail field is optional — the rails behind these methods publish them unevenly — but a kind that arrives with document_url can always fall back to sending the buyer to that hosted copy of the instructions.

Method Summary

Methods included from Internal::Types::Union

coerce, discriminant, load, member, members, type_member?

Methods included from Internal::Types::Type

#coerce, #strict!, #strict?

Methods included from Internal::JSON::Serializable

#dump, #load

Methods inherited from Internal::Types::Model

#==, ===, add_extra_field_definition, coerce, extra_fields, field, fields, #initialize, #inspect, literal, load, #to_h

Constructor Details

This class inherits a constructor from Whop_sdk::Internal::Types::Model