/
model_v1_payment_tax.go
25 lines (24 loc) · 1.01 KB
/
model_v1_payment_tax.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
* Square Connect API
*
* Client library for accessing the Square Connect APIs
*
* API version: 2.0
* Contact: developers@squareup.com
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package square
// V1PaymentTax
type V1PaymentTax struct {
// Any errors that occurred during the request.
Errors []ModelError `json:"errors,omitempty"`
// The merchant-defined name of the tax.
Name string `json:"name,omitempty"`
AppliedMoney *V1Money `json:"applied_money,omitempty"`
// The rate of the tax, as a string representation of a decimal number. A value of 0.07 corresponds to a rate of 7%.
Rate string `json:"rate,omitempty"`
// Whether the tax is an ADDITIVE tax or an INCLUSIVE tax. See [V1PaymentTaxInclusionType](#type-v1paymenttaxinclusiontype) for possible values
InclusionType string `json:"inclusion_type,omitempty"`
// The ID of the tax, if available. Taxes applied in older versions of Square Register might not have an ID.
FeeId string `json:"fee_id,omitempty"`
}