Browse Source

minor name change

pull/223/head
Christian Arenas 7 years ago
parent
commit
242c1daacf
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      src/Services/Payment/Payment.API/IntegrationEvents/EventHandling/OrderStatusChangedToStockConfirmedIntegrationEventHandler.cs
  2. +1
    -1
      src/Services/Payment/Payment.API/PaymentSettings.cs
  3. +1
    -1
      src/Services/Payment/Payment.API/appsettings.json

+ 1
- 1
src/Services/Payment/Payment.API/IntegrationEvents/EventHandling/OrderStatusChangedToStockConfirmedIntegrationEventHandler.cs View File

@ -22,7 +22,7 @@
public async Task Handle(OrderStatusChangedToStockConfirmedIntegrationEvent @event) public async Task Handle(OrderStatusChangedToStockConfirmedIntegrationEvent @event)
{ {
IntegrationEvent orderPaymentIntegrationEvent; IntegrationEvent orderPaymentIntegrationEvent;
if(_settings.SuccessPayment)
if(_settings.PaymentSucceded)
{ {
orderPaymentIntegrationEvent = new OrderPaymentSuccededIntegrationEvent(@event.OrderId); orderPaymentIntegrationEvent = new OrderPaymentSuccededIntegrationEvent(@event.OrderId);
} }


+ 1
- 1
src/Services/Payment/Payment.API/PaymentSettings.cs View File

@ -2,7 +2,7 @@
{ {
public class PaymentSettings public class PaymentSettings
{ {
public bool SuccessPayment { get; set; }
public bool PaymentSucceded { get; set; }
public string EventBusConnection { get; set; } public string EventBusConnection { get; set; }
} }
} }

+ 1
- 1
src/Services/Payment/Payment.API/appsettings.json View File

@ -5,5 +5,5 @@
"Default": "Warning" "Default": "Warning"
} }
}, },
"SuccessPayment": "true"
"PaymentSucceded": "true"
} }

Loading…
Cancel
Save