2017-05-11 11:51:13 +02:00
|
|
|
|
using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Events;
|
|
|
|
|
using Microsoft.eShopOnContainers.Services.Basket.API.Model;
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace Basket.API.IntegrationEvents.Events
|
|
|
|
|
{
|
2020-12-23 10:19:38 +01:00
|
|
|
|
public record UserCheckoutAcceptedIntegrationEvent : IntegrationEvent
|
2017-05-11 11:51:13 +02:00
|
|
|
|
{
|
|
|
|
|
public string UserId { get; }
|
|
|
|
|
|
2018-04-13 13:45:21 +02:00
|
|
|
|
public string UserName { get; }
|
|
|
|
|
|
2020-12-23 10:19:38 +01:00
|
|
|
|
public int OrderNumber { get; init; }
|
2017-05-11 11:51:13 +02:00
|
|
|
|
|
2020-12-23 10:19:38 +01:00
|
|
|
|
public string City { get; init; }
|
2017-05-11 11:51:13 +02:00
|
|
|
|
|
2020-12-23 10:19:38 +01:00
|
|
|
|
public string Street { get; init; }
|
2017-05-11 11:51:13 +02:00
|
|
|
|
|
2020-12-23 10:19:38 +01:00
|
|
|
|
public string State { get; init; }
|
2017-05-11 11:51:13 +02:00
|
|
|
|
|
2020-12-23 10:19:38 +01:00
|
|
|
|
public string Country { get; init; }
|
2017-05-11 11:51:13 +02:00
|
|
|
|
|
2020-12-23 10:19:38 +01:00
|
|
|
|
public string ZipCode { get; init; }
|
2017-05-11 11:51:13 +02:00
|
|
|
|
|
2020-12-23 10:19:38 +01:00
|
|
|
|
public string CardNumber { get; init; }
|
2017-05-11 11:51:13 +02:00
|
|
|
|
|
2020-12-23 10:19:38 +01:00
|
|
|
|
public string CardHolderName { get; init; }
|
2017-05-11 11:51:13 +02:00
|
|
|
|
|
2020-12-23 10:19:38 +01:00
|
|
|
|
public DateTime CardExpiration { get; init; }
|
2017-05-11 11:51:13 +02:00
|
|
|
|
|
2020-12-23 10:19:38 +01:00
|
|
|
|
public string CardSecurityNumber { get; init; }
|
2017-05-11 11:51:13 +02:00
|
|
|
|
|
2020-12-23 10:19:38 +01:00
|
|
|
|
public int CardTypeId { get; init; }
|
2017-05-11 11:51:13 +02:00
|
|
|
|
|
2020-12-23 10:19:38 +01:00
|
|
|
|
public string Buyer { get; init; }
|
2017-05-11 11:51:13 +02:00
|
|
|
|
|
2020-12-23 10:19:38 +01:00
|
|
|
|
public Guid RequestId { get; init; }
|
2017-05-11 11:51:13 +02:00
|
|
|
|
|
|
|
|
|
public CustomerBasket Basket { get; }
|
|
|
|
|
|
2018-04-13 13:45:21 +02:00
|
|
|
|
public UserCheckoutAcceptedIntegrationEvent(string userId, string userName, string city, string street,
|
2017-05-11 11:51:13 +02:00
|
|
|
|
string state, string country, string zipCode, string cardNumber, string cardHolderName,
|
|
|
|
|
DateTime cardExpiration, string cardSecurityNumber, int cardTypeId, string buyer, Guid requestId,
|
|
|
|
|
CustomerBasket basket)
|
|
|
|
|
{
|
|
|
|
|
UserId = userId;
|
2018-04-13 13:45:21 +02:00
|
|
|
|
UserName = userName;
|
2017-05-11 11:51:13 +02:00
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|