You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dispute.go
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -697,6 +697,8 @@ type Dispute struct {
697
697
APIResource
698
698
// Disputed amount. Usually the amount of the charge, but it can differ (usually because of currency fluctuation or because only part of the order is disputed).
699
699
Amountint64`json:"amount"`
700
+
// The amount you want to contest, in the dispute's currency. Setting this to less than the full dispute amount means accepting the loss on the remaining amount. If not specified, the entire disputed amount is contested.
701
+
AmountToCounterint64`json:"amount_to_counter"`
700
702
// List of zero, one, or two balance transactions that show funds withdrawn and reinstated to your Stripe account as a result of this dispute.
// Deletes an invoice item, removing it from an invoice. Deleting invoice items is only possible when they're not attached to invoices, or if it's attached to a draft invoice.
32
41
typeInvoiceItemParamsstruct {
33
42
Params`form:"*"`
@@ -545,6 +554,8 @@ type InvoiceItem struct {
545
554
Discountablebool`json:"discountable"`
546
555
// The discounts which apply to the invoice item. Item discounts are applied before invoice discounts. Use `expand[]=discounts` to expand each discount.
547
556
Discounts []*Discount`json:"discounts"`
557
+
// Array of field names that can't be modified. Attempting to update a frozen field returns an error.
0 commit comments