Class: Stripe::Issuing::DisputeService::CreateParams

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/issuing/dispute_service.rb

Defined Under Namespace

Classes: Evidence, Treasury

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(amount: nil, evidence: nil, expand: nil, metadata: nil, transaction: nil, treasury: nil) ⇒ CreateParams

Returns a new instance of CreateParams.



333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
# File 'lib/stripe/services/issuing/dispute_service.rb', line 333

def initialize(
  amount: nil,
  evidence: nil,
  expand: nil,
  metadata: nil,
  transaction: nil,
  treasury: nil
)
  @amount = amount
  @evidence = evidence
  @expand = expand
  @metadata = 
  @transaction = transaction
  @treasury = treasury
end

Instance Attribute Details

#amountObject

The dispute amount in the card’s currency and in the [smallest currency unit](stripe.com/docs/currencies#zero-decimal). If not set, defaults to the full transaction amount.



321
322
323
# File 'lib/stripe/services/issuing/dispute_service.rb', line 321

def amount
  @amount
end

#evidenceObject

Evidence provided for the dispute.



323
324
325
# File 'lib/stripe/services/issuing/dispute_service.rb', line 323

def evidence
  @evidence
end

#expandObject

Specifies which fields in the response should be expanded.



325
326
327
# File 'lib/stripe/services/issuing/dispute_service.rb', line 325

def expand
  @expand
end

#metadataObject

Set of [key-value pairs](stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to ‘metadata`.



327
328
329
# File 'lib/stripe/services/issuing/dispute_service.rb', line 327

def 
  @metadata
end

#transactionObject

The ID of the issuing transaction to create a dispute for. For transaction on Treasury FinancialAccounts, use ‘treasury.received_debit`.



329
330
331
# File 'lib/stripe/services/issuing/dispute_service.rb', line 329

def transaction
  @transaction
end

#treasuryObject

Params for disputes related to Treasury FinancialAccounts



331
332
333
# File 'lib/stripe/services/issuing/dispute_service.rb', line 331

def treasury
  @treasury
end