Class: GrowsurfRuby::Models::Campaign::ParticipantRefundTransactionResponse

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

Overview

See Also:

  • GrowsurfRuby::Resources::Campaign::Participant#refund_transaction

Defined Under Namespace

Modules: AmendmentType

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(adjusted:, amendment_type:, deleted:, matched:, matching_commission_ids:, message:, reversed:, success:, not_found: nil) ⇒ Object

Parameters:



# File 'lib/growsurf_ruby/models/campaign/participant_refund_transaction_response.rb', line 57

Instance Attribute Details

#adjustedInteger

Parameters:

  • value (Integer)

Returns:

  • (Integer)


11
# File 'lib/growsurf_ruby/models/campaign/participant_refund_transaction_response.rb', line 11

required :adjusted, Integer

#amendment_typeSymbol, GrowsurfRuby::Models::Campaign::ParticipantRefundTransactionResponse::AmendmentType

Parameters:

  • value (GrowsurfRuby::Models::Campaign::ParticipantRefundTransactionResponse::amendment_type)

Returns:



16
17
18
# File 'lib/growsurf_ruby/models/campaign/participant_refund_transaction_response.rb', line 16

required :amendment_type,
enum: -> { GrowsurfRuby::Campaign::ParticipantRefundTransactionResponse::AmendmentType },
api_name: :amendmentType

#deletedInteger

Parameters:

  • value (Integer)

Returns:

  • (Integer)


23
# File 'lib/growsurf_ruby/models/campaign/participant_refund_transaction_response.rb', line 23

required :deleted, Integer

#matchedInteger

Parameters:

  • value (Integer)

Returns:

  • (Integer)


28
# File 'lib/growsurf_ruby/models/campaign/participant_refund_transaction_response.rb', line 28

required :matched, Integer

#matching_commission_idsArray<String>

Parameters:

  • value (::Array[String])

Returns:

  • (Array<String>)


33
34
35
# File 'lib/growsurf_ruby/models/campaign/participant_refund_transaction_response.rb', line 33

required :matching_commission_ids,
GrowsurfRuby::Internal::Type::ArrayOf[String],
api_name: :matchingCommissionIds

#messageString

Parameters:

  • value (String)

Returns:

  • (String)


40
# File 'lib/growsurf_ruby/models/campaign/participant_refund_transaction_response.rb', line 40

required :message, String

#not_foundBoolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


55
# File 'lib/growsurf_ruby/models/campaign/participant_refund_transaction_response.rb', line 55

optional :not_found, GrowsurfRuby::Internal::Type::Boolean, api_name: :notFound

#reversedInteger

Parameters:

  • value (Integer)

Returns:

  • (Integer)


45
# File 'lib/growsurf_ruby/models/campaign/participant_refund_transaction_response.rb', line 45

required :reversed, Integer

#successBoolean

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


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

required :success, GrowsurfRuby::Internal::Type::Boolean

Instance Method Details

#to_hash{

Returns:

  • ({)


50
# File 'sig/growsurf_ruby/models/campaign/participant_refund_transaction_response.rbs', line 50

def to_hash: -> {