Class: Dodopayments::Models::DigitalProductDelivery

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/dodopayments/models/digital_product_delivery.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(files:, external_url: nil, instructions: nil) ⇒ Object

Some parameter documentations has been truncated, see Dodopayments::Models::DigitalProductDelivery for more details.

Digital-product-delivery payload, present on grants for ‘digital_files` entitlements. Each file carries a short-lived presigned download URL.

Parameters:

  • files (Array<Dodopayments::Models::DigitalProductDeliveryFile>)

    One entry per attached file.

  • external_url (String, nil) (defaults to: nil)

    Optional external URL, passed through from the entitlement

  • instructions (String, nil) (defaults to: nil)

    Optional human-readable delivery instructions, passed through from



# File 'lib/dodopayments/models/digital_product_delivery.rb', line 25

Instance Attribute Details

#external_urlString?

Optional external URL, passed through from the entitlement configuration.

Returns:

  • (String, nil)


16
# File 'lib/dodopayments/models/digital_product_delivery.rb', line 16

optional :external_url, String, nil?: true

#filesArray<Dodopayments::Models::DigitalProductDeliveryFile>

One entry per attached file.



10
# File 'lib/dodopayments/models/digital_product_delivery.rb', line 10

required :files, -> { Dodopayments::Internal::Type::ArrayOf[Dodopayments::DigitalProductDeliveryFile] }

#instructionsString?

Optional human-readable delivery instructions, passed through from the entitlement configuration.

Returns:

  • (String, nil)


23
# File 'lib/dodopayments/models/digital_product_delivery.rb', line 23

optional :instructions, String, nil?: true