chore: update vendor purchase response
This commit is contained in:
parent
692dfaf0a5
commit
aad3a7bcf7
@ -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 {
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user