62 lines
1.8 KiB
C#
62 lines
1.8 KiB
C#
using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Events;
|
|
using Microsoft.eShopOnContainers.Services.Basket.API.Model;
|
|
using System;
|
|
|
|
namespace Basket.API.IntegrationEvents.Events
|
|
{
|
|
public class UserCheckoutAcceptedIntegrationEvent : IntegrationEvent
|
|
{
|
|
public string UserId { get; }
|
|
|
|
public int OrderNumber { get; set; }
|
|
|
|
public string City { get; set; }
|
|
|
|
public string Street { get; set; }
|
|
|
|
public string State { get; set; }
|
|
|
|
public string Country { get; set; }
|
|
|
|
public string ZipCode { get; set; }
|
|
|
|
public string CardNumber { get; set; }
|
|
|
|
public string CardHolderName { get; set; }
|
|
|
|
public DateTime CardExpiration { get; set; }
|
|
|
|
public string CardSecurityNumber { get; set; }
|
|
|
|
public int CardTypeId { get; set; }
|
|
|
|
public string Buyer { get; set; }
|
|
|
|
public Guid RequestId { get; set; }
|
|
|
|
public CustomerBasket Basket { get; }
|
|
|
|
public UserCheckoutAcceptedIntegrationEvent(string userId, string city, string street,
|
|
string state, string country, string zipCode, string cardNumber, string cardHolderName,
|
|
DateTime cardExpiration, string cardSecurityNumber, int cardTypeId, string buyer, Guid requestId,
|
|
CustomerBasket basket)
|
|
{
|
|
UserId = userId;
|
|
City = city;
|
|
Street = street;
|
|
State = state;
|
|
Country = country;
|
|
ZipCode = zipCode;
|
|
CardNumber = cardNumber;
|
|
CardHolderName = cardHolderName;
|
|
CardExpiration = cardExpiration;
|
|
CardSecurityNumber = cardSecurityNumber;
|
|
CardTypeId = cardTypeId;
|
|
Buyer = buyer;
|
|
Basket = basket;
|
|
RequestId = requestId;
|
|
}
|
|
|
|
}
|
|
}
|