@@ -43,7 +43,7 @@ public partial interface IPriceFormatter
43
43
/// <param name="showTax">A value indicating whether to show tax suffix</param>
44
44
/// <param name="language">Language</param>
45
45
/// <returns>Price</returns>
46
- string FormatPrice ( decimal price , bool showCurrency ,
46
+ string FormatPrice ( decimal price , bool showCurrency ,
47
47
string currencyCode , bool showTax , Language language ) ;
48
48
49
49
/// <summary>
@@ -67,7 +67,7 @@ string FormatPrice(decimal price, bool showCurrency,
67
67
/// <param name="language">Language</param>
68
68
/// <param name="priceIncludesTax">A value indicating whether price includes tax</param>
69
69
/// <returns>Price</returns>
70
- string FormatPrice ( decimal price , bool showCurrency ,
70
+ string FormatPrice ( decimal price , bool showCurrency ,
71
71
Currency targetCurrency , Language language , bool priceIncludesTax ) ;
72
72
73
73
/// <summary>
@@ -80,7 +80,7 @@ string FormatPrice(decimal price, bool showCurrency,
80
80
/// <param name="priceIncludesTax">A value indicating whether price includes tax</param>
81
81
/// <param name="showTax">A value indicating whether to show tax suffix</param>
82
82
/// <returns>Price</returns>
83
- string FormatPrice ( decimal price , bool showCurrency ,
83
+ string FormatPrice ( decimal price , bool showCurrency ,
84
84
Currency targetCurrency , Language language , bool priceIncludesTax , bool showTax ) ;
85
85
86
86
/// <summary>
@@ -110,7 +110,7 @@ string FormatPrice(decimal price, bool showCurrency,
110
110
/// <param name="language">Language</param>
111
111
/// <param name="priceIncludesTax">A value indicating whether price includes tax</param>
112
112
/// <returns>Price</returns>
113
- string FormatShippingPrice ( decimal price , bool showCurrency ,
113
+ string FormatShippingPrice ( decimal price , bool showCurrency ,
114
114
Currency targetCurrency , Language language , bool priceIncludesTax ) ;
115
115
/// <summary>
116
116
/// Formats the shipping price
@@ -122,9 +122,9 @@ string FormatShippingPrice(decimal price, bool showCurrency,
122
122
/// <param name="priceIncludesTax">A value indicating whether price includes tax</param>
123
123
/// <param name="showTax">A value indicating whether to show tax suffix</param>
124
124
/// <returns>Price</returns>
125
- string FormatShippingPrice ( decimal price , bool showCurrency ,
125
+ string FormatShippingPrice ( decimal price , bool showCurrency ,
126
126
Currency targetCurrency , Language language , bool priceIncludesTax , bool showTax ) ;
127
-
127
+
128
128
/// <summary>
129
129
/// Formats the shipping price
130
130
/// </summary>
@@ -134,7 +134,7 @@ string FormatShippingPrice(decimal price, bool showCurrency,
134
134
/// <param name="language">Language</param>
135
135
/// <param name="priceIncludesTax">A value indicating whether price includes tax</param>
136
136
/// <returns>Price</returns>
137
- string FormatShippingPrice ( decimal price , bool showCurrency ,
137
+ string FormatShippingPrice ( decimal price , bool showCurrency ,
138
138
string currencyCode , Language language , bool priceIncludesTax ) ;
139
139
140
140
@@ -169,7 +169,7 @@ string FormatPaymentMethodAdditionalFee(decimal price, bool showCurrency,
169
169
/// <param name="priceIncludesTax">A value indicating whether price includes tax</param>
170
170
/// <param name="showTax">A value indicating whether to show tax suffix</param>
171
171
/// <returns>Price</returns>
172
- string FormatPaymentMethodAdditionalFee ( decimal price , bool showCurrency ,
172
+ string FormatPaymentMethodAdditionalFee ( decimal price , bool showCurrency ,
173
173
Currency targetCurrency , Language language , bool priceIncludesTax , bool showTax ) ;
174
174
175
175
/// <summary>
@@ -181,7 +181,7 @@ string FormatPaymentMethodAdditionalFee(decimal price, bool showCurrency,
181
181
/// <param name="language">Language</param>
182
182
/// <param name="priceIncludesTax">A value indicating whether price includes tax</param>
183
183
/// <returns>Price</returns>
184
- string FormatPaymentMethodAdditionalFee ( decimal price , bool showCurrency ,
184
+ string FormatPaymentMethodAdditionalFee ( decimal price , bool showCurrency ,
185
185
string currencyCode , Language language , bool priceIncludesTax ) ;
186
186
187
187
@@ -192,5 +192,24 @@ string FormatPaymentMethodAdditionalFee(decimal price, bool showCurrency,
192
192
/// <param name="taxRate">Tax rate</param>
193
193
/// <returns>Formatted tax rate</returns>
194
194
string FormatTaxRate ( decimal taxRate ) ;
195
+
196
+ /// <summary>
197
+ /// Adds tax suffix to text
198
+ /// </summary>
199
+ /// <param name="text">Text to format</param>
200
+ /// <param name="language">Language</param>
201
+ /// <param name="priceIncludesTax">A value indicating whether price includes tax</param>
202
+ /// <returns></returns>
203
+ string FormatTaxString ( string text , Language language , bool priceIncludesTax ) ;
204
+
205
+ /// <summary>
206
+ /// Adds tax suffix to text
207
+ /// </summary>
208
+ /// <param name="text">Text to format</param>
209
+ /// <param name="language">Language</param>
210
+ /// <param name="priceIncludesTax">A value indicating whether price includes tax</param>
211
+ /// <param name="showTax">Optional. A value indicating whether to show tax suffix.</param>
212
+ /// <returns></returns>
213
+ string FormatTaxString ( string text , Language language , bool priceIncludesTax , bool showTax ) ;
195
214
}
196
215
}
0 commit comments