Class: GrowsurfRuby::Models::Campaign::ParticipantGetPayoutDestinationResponse::Destination

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/growsurf_ruby/models/campaign/participant_get_payout_destination_response.rb,
sig/growsurf_ruby/models/campaign/participant_get_payout_destination_response.rbs

Overview

See Also:

  • GrowsurfRuby::Models::Campaign::ParticipantGetPayoutDestinationResponse#destinations

Defined Under Namespace

Modules: LegalEntityType

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(claim_email: nil, confirmed_at: nil, legal_entity_type: nil, needs_repair_reason: nil, provider: nil, provider_display_name: nil, status: nil) ⇒ Object

Parameters:

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

    The confirmed payout email for this provider.

  • confirmed_at (Integer, nil) (defaults to: nil)

    When the destination was confirmed, as a Unix timestamp in milliseconds.

  • legal_entity_type (Symbol, GrowsurfRuby::Models::Campaign::ParticipantGetPayoutDestinationResponse::Destination::LegalEntityType, nil) (defaults to: nil)

    The legal recipient type the participant confirmed, if any.

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

    When status is NEEDS_REPAIR, why (e.g. a bounced delivery).

  • provider (String) (defaults to: nil)

    The payout provider this entry describes.

  • provider_display_name (String) (defaults to: nil)

    The customer-facing provider name (e.g. "PayPal", "Wise").

  • status (String) (defaults to: nil)

    The destination's current status: NONE (not set up), PENDING_CONFIRMATION, CONFIRMED, ACTIVE, NEEDS_REPAIR, or EXPIRED.



# File 'lib/growsurf_ruby/models/campaign/participant_get_payout_destination_response.rb', line 95

Instance Attribute Details

#claim_emailString?

The confirmed payout email for this provider.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


50
# File 'lib/growsurf_ruby/models/campaign/participant_get_payout_destination_response.rb', line 50

optional :claim_email, String, api_name: :claimEmail, nil?: true

#confirmed_atInteger?

When the destination was confirmed, as a Unix timestamp in milliseconds.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


56
# File 'lib/growsurf_ruby/models/campaign/participant_get_payout_destination_response.rb', line 56

optional :confirmed_at, Integer, api_name: :confirmedAt, nil?: true

The legal recipient type the participant confirmed, if any.

Parameters:

  • value (GrowsurfRuby::Models::Campaign::ParticipantGetPayoutDestinationResponse::Destination::legal_entity_type, nil)

Returns:



62
63
64
65
66
67
# File 'lib/growsurf_ruby/models/campaign/participant_get_payout_destination_response.rb', line 62

optional :legal_entity_type,
enum: -> {
  GrowsurfRuby::Campaign::ParticipantGetPayoutDestinationResponse::Destination::LegalEntityType
},
api_name: :legalEntityType,
nil?: true

#needs_repair_reasonString?

When status is NEEDS_REPAIR, why (e.g. a bounced delivery).

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


73
# File 'lib/growsurf_ruby/models/campaign/participant_get_payout_destination_response.rb', line 73

optional :needs_repair_reason, String, api_name: :needsRepairReason, nil?: true

#providerString?

The payout provider this entry describes.

Returns:

  • (String, nil)


79
# File 'lib/growsurf_ruby/models/campaign/participant_get_payout_destination_response.rb', line 79

optional :provider, String

#provider_display_nameString?

The customer-facing provider name (e.g. "PayPal", "Wise").

Parameters:

  • (String)

Returns:

  • (String, nil)


85
# File 'lib/growsurf_ruby/models/campaign/participant_get_payout_destination_response.rb', line 85

optional :provider_display_name, String, api_name: :providerDisplayName

#statusString?

The destination's current status: NONE (not set up), PENDING_CONFIRMATION, CONFIRMED, ACTIVE, NEEDS_REPAIR, or EXPIRED. Historical superseded or revoked destinations are projected as NONE.

Parameters:

  • (String)

Returns:

  • (String, nil)


93
# File 'lib/growsurf_ruby/models/campaign/participant_get_payout_destination_response.rb', line 93

optional :status, String

Instance Method Details

#to_hash{

Returns:

  • ({)


82
# File 'sig/growsurf_ruby/models/campaign/participant_get_payout_destination_response.rbs', line 82

def to_hash: -> {