chore: update vendor purchase response

This commit is contained in:
Sainan 2025-03-28 00:17:33 +01:00
parent 692dfaf0a5
commit aad3a7bcf7
2 changed files with 4 additions and 2 deletions

View File

@ -99,7 +99,7 @@ export const handlePurchase = async (
Expiry: new Date(parseInt(offer.Expiry.$date.$numberLong))
});
}
prePurchaseInventoryChanges.RecentVendorPurchases = {
prePurchaseInventoryChanges.NewVendorPurchase = {
VendorType: manifest.VendorInfo.TypeName,
PurchaseHistory: [
{
@ -109,6 +109,7 @@ export const handlePurchase = async (
}
]
};
prePurchaseInventoryChanges.RecentVendorPurchases = prePurchaseInventoryChanges.NewVendorPurchase;
}
purchaseRequest.PurchaseParams.Quantity *= offer.QuantityMultiplier;
} else {

View File

@ -44,7 +44,8 @@ export type IInventoryChanges = {
MiscItems?: IMiscItem[];
EmailItems?: ITypeCount[];
Nemesis?: Partial<INemesisClient>;
RecentVendorPurchases?: IRecentVendorPurchaseClient;
NewVendorPurchase?: IRecentVendorPurchaseClient; // >= 38.5.0
RecentVendorPurchases?: IRecentVendorPurchaseClient; // < 38.5.0
} & Record<
Exclude<
string,