Class: Stripe::Issuing::DisputeCreateParams

Inherits:
RequestParams show all
Defined in:
lib/stripe/params/issuing/dispute_create_params.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) ⇒ DisputeCreateParams

Returns a new instance of DisputeCreateParams.



280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
# File 'lib/stripe/params/issuing/dispute_create_params.rb', line 280

def initialize(
  amount: nil,
  evidence: nil,
  expand: nil,
  metadata: nil,
  transaction: nil,
  treasury: nil
)
  @amount = amount
  @evidence = evidence
  @expand = expand
   = 
  @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.



268
269
270
# File 'lib/stripe/params/issuing/dispute_create_params.rb', line 268

def amount
  @amount
end

#evidenceObject

Evidence provided for the dispute.



270
271
272
# File 'lib/stripe/params/issuing/dispute_create_params.rb', line 270

def evidence
  @evidence
end

#expandObject

Specifies which fields in the response should be expanded.



272
273
274
# File 'lib/stripe/params/issuing/dispute_create_params.rb', line 272

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`.



274
275
276
# File 'lib/stripe/params/issuing/dispute_create_params.rb', line 274

def 
  
end

#transactionObject

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



276
277
278
# File 'lib/stripe/params/issuing/dispute_create_params.rb', line 276

def transaction
  @transaction
end

#treasuryObject

Params for disputes related to Treasury FinancialAccounts



278
279
280
# File 'lib/stripe/params/issuing/dispute_create_params.rb', line 278

def treasury
  @treasury
end