diff --git a/internal/service/cart/cart.go b/internal/service/cart/cart.go index 7fe2f84..184a91b 100644 --- a/internal/service/cart/cart.go +++ b/internal/service/cart/cart.go @@ -165,7 +165,7 @@ func (receiver *Service) Pay(ctx context.Context, accessToken string, userID str UserInformation: &discount.UserInformation{ ID: account.UserID, Type: string(account.Status), - PurchasesAmount: uint64(account.Wallet.PurchasesAmount), + PurchasesAmount: uint64(account.Wallet.Spent), CartPurchasesAmount: tariffsAmount, }, Products: transfer.TariffsToProductInformations(tariffs), @@ -180,7 +180,7 @@ func (receiver *Service) Pay(ctx context.Context, accessToken string, userID str UserInformation: &discount.UserInformation{ ID: account.UserID, Type: string(account.Status), - PurchasesAmount: uint64(account.Wallet.PurchasesAmount), + PurchasesAmount: uint64(account.Wallet.Spent), CartPurchasesAmount: tariffsAmount, }, Products: transfer.TariffsToProductInformations(tariffs), diff --git a/main b/main deleted file mode 100755 index f8fc3e6..0000000 Binary files a/main and /dev/null differ