Skip to content

Creating a refund allows setting of unknown parameter "currency" #2786

Open
@markjerz

Description

@markjerz

Describe the bug

RefundCreateOptions has a Currency property in it but that parameter isn't present in the API docs. So, if I set it to something in the code I get an error response back from Stripe about an unknown parameter.

To Reproduce

var refund = await refundService.CreateAsync(
    new RefundCreateOptions {
        PamentIntent = payment.PaymentIntentId.Id, 
        Amount = X,
        Currency      = "gbp"
    });

Expected behavior

I suppose, the Currency property shouldn't exist in the RefundCreateOptions? Or maybe be marked as [Obsolete] if it once was possible (so as not to break existing implementations)?

Code snippets

No response

OS

Win11

.NET version

net7

Library version

stripe-dotnet 43.0.0

API version

2023-10-16

Additional context

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions