Stripe Tax Rate Database Service
A service which handles getting the Stripe Tax Rates from the database
Reads publish OnStripeTaxRatesLoadedNotification, and saves and deletes publish the cancellable OnStripeTaxRateSavingNotification and OnStripeTaxRateDeletingNotification (see Extending UmbCheckout).
The Stripe database service is what handles the insertion, retrieval, updating, and deletion of the Tax Rates within the database.
You can access the database service by injecting IStripeTaxRateDatabaseService which can be found within the namespace UmbCheckout.Stripe.Addons.Interfaces
GetTaxRatesAsync
Gets the Tax Rates
Task<IEnumerable<TaxRate>> GetTaxRatesAsync(CancellationToken cancellationToken = default);GetTaxRateAsync
Gets a specified Tax Rate
Parameters:
key
Key of the Stripe Tax Rate
Task<TaxRate?> GetTaxRateAsync(Guid key, CancellationToken cancellationToken = default);GetTaxRateAsync
Gets a specified Tax Rate
Parameters:
value
StripeId of the Stripe Tax Rate
Task<TaxRate?> GetTaxRateAsync(string value, CancellationToken cancellationToken = default);CreateTaxRateAsync
Creates a Tax Rate
Parameters:
taxRate
The Stripe Tax Rate
UpdateTaxRateAsync
Updates a specified Tax Rate
Parameters:
taxRate
The Stripe Tax Rate
DeleteTaxRateAsync
Deletes a specified Tax Rate
Parameters:
key
Key of the Stripe Tax Rate
Last updated