增加统一倍率调整按钮

This commit is contained in:
andy committed 2026-09-23 15:46:21 +08:00
1 parent be655b6569
commit 4195525dc7
23 files changed
+750 -16

No files matched your search

+5
View File
@@ -138,6 +138,7 @@ type billingHTTPServiceStub struct {
quote billing.QuoteCommand
adjustment billing.AdjustmentCommand
pricePatch billing.PricePatch
bulkPricePatch billing.BulkPricePatch
price *billing.PriceRule
err error
}
@@ -163,6 +164,10 @@ func (s *billingHTTPServiceStub) UpdatePrice(_ context.Context, _ string, patch
s.pricePatch = patch
return s.price, s.err
}
func (s *billingHTTPServiceStub) UpdatePrices(_ context.Context, patch billing.BulkPricePatch) ([]billing.PriceRule, error) {
s.bulkPricePatch = patch
return []billing.PriceRule{}, s.err
}
func (s *billingHTTPServiceStub) Adjust(_ context.Context, command billing.AdjustmentCommand) (billing.AdjustmentResult, error) {
s.adjustment = command
return billing.AdjustmentResult{Wallet: billing.Wallet{OrganizationID: command.OrganizationID, Currency: billing.CurrencyCNY}}, s.err