make current exchange rate default
This commit is contained in:
parent
7d0434570e
commit
bcd761ac23
@ -7,15 +7,15 @@ public class ShopifyRefundWebhookSettingsViewModel
|
||||
{
|
||||
public enum RefundOption
|
||||
{
|
||||
RateThen,
|
||||
CurrentRate
|
||||
CurrentRate,
|
||||
RateThen
|
||||
}
|
||||
|
||||
public string WebhookUrl { get; set; }
|
||||
[Required(ErrorMessage = "Webhook secret is required")]
|
||||
public string WebhookSecret { get; set; }
|
||||
[Required(ErrorMessage = "Please select a refund option")]
|
||||
public RefundOption? SelectedRefundOption { get; set; }
|
||||
public RefundOption SelectedRefundOption { get; set; } = RefundOption.CurrentRate;
|
||||
|
||||
[Range(0, 99, ErrorMessage = "Spread must be between 0 and 99")]
|
||||
public decimal SpreadPercentage { get; set; } = 0;
|
||||
|
||||
@ -73,14 +73,14 @@
|
||||
<div class="mb-4">
|
||||
<label class="form-label fw-bold">Refund Option Method</label>
|
||||
<span asp-validation-for="SelectedRefundOption" class="text-danger"></span>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" asp-for="SelectedRefundOption" value="RateThen" id="refundRateThen" />
|
||||
<label class="form-check-label" for="refundRateThen">Use exchange rate at time of original payment</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" asp-for="SelectedRefundOption" value="CurrentRate" id="refundCurrentRate" />
|
||||
<label class="form-check-label" for="refundCurrentRate"> Use current exchange rate at time of refund</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" asp-for="SelectedRefundOption" value="RateThen" id="refundRateThen" />
|
||||
<label class="form-check-label" for="refundRateThen">Use exchange rate at time of original payment</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user