Skip to content

Commit fa697db

Browse files
Merge pull request #2289 from stripe/latest-codegen-private-preview
Update generated code for private-preview
2 parents 2428381 + 24ef9f9 commit fa697db

18 files changed

+3355
-277
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ This release uses the API version `2026-01-28.preview`.
6666
* Add support for `URL` on `FinancialConnectionsSession`
6767
* Add support for `BillingCycleAnchor` on `SubscriptionTrialSettingsEndBehaviorParams`
6868

69+
## 84.4.1 - 2026-03-06
70+
* [#2288](https://github.com/stripe/stripe-go/pull/2288) Add Stripe-Request-Trigger header
71+
* [#2285](https://github.com/stripe/stripe-go/pull/2285) Add agent information to UserAgent
72+
6973
## 84.4.0 - 2026-02-25
7074
This release changes the pinned API version to `2026-02-25.clover`.
7175

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
49b1e23eef1a5004ed00987c41d5ec8447a19e27
1+
2feaeea9e3c2b01dd5b7e4092d8364af4bf1e740

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2189
1+
v2190

balancetransaction.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ type BalanceTransactionBalanceType string
1313

1414
// List of values that BalanceTransactionBalanceType can take
1515
const (
16+
BalanceTransactionBalanceTypeFeeCredits BalanceTransactionBalanceType = "fee_credits"
1617
BalanceTransactionBalanceTypeIssuing BalanceTransactionBalanceType = "issuing"
1718
BalanceTransactionBalanceTypePayments BalanceTransactionBalanceType = "payments"
1819
BalanceTransactionBalanceTypeRefundAndDisputePrefunding BalanceTransactionBalanceType = "refund_and_dispute_prefunding"

client/api.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ import (
124124
"github.com/stripe/stripe-go/v84/quotepreviewsubscriptionschedule"
125125
radaraccountevaluation "github.com/stripe/stripe-go/v84/radar/accountevaluation"
126126
radarearlyfraudwarning "github.com/stripe/stripe-go/v84/radar/earlyfraudwarning"
127+
radarissuingauthorizationevaluation "github.com/stripe/stripe-go/v84/radar/issuingauthorizationevaluation"
127128
radarpaymentevaluation "github.com/stripe/stripe-go/v84/radar/paymentevaluation"
128129
radarvaluelist "github.com/stripe/stripe-go/v84/radar/valuelist"
129130
radarvaluelistitem "github.com/stripe/stripe-go/v84/radar/valuelistitem"
@@ -488,6 +489,8 @@ type API struct {
488489
RadarAccountEvaluations *radaraccountevaluation.Client
489490
// RadarEarlyFraudWarnings is the client used to invoke /v1/radar/early_fraud_warnings APIs.
490491
RadarEarlyFraudWarnings *radarearlyfraudwarning.Client
492+
// RadarIssuingAuthorizationEvaluations is the client used to invoke /v1/radar/issuing_authorization_evaluations APIs.
493+
RadarIssuingAuthorizationEvaluations *radarissuingauthorizationevaluation.Client
491494
// RadarPaymentEvaluations is the client used to invoke /v1/radar/payment_evaluations APIs.
492495
RadarPaymentEvaluations *radarpaymentevaluation.Client
493496
// RadarValueListItems is the client used to invoke /v1/radar/value_list_items APIs.
@@ -883,6 +886,7 @@ func (a *API) Init(key string, backends *stripe.Backends) {
883886
a.Quotes = &quote.Client{B: backends.API, BUploads: backends.Uploads, Key: key}
884887
a.RadarAccountEvaluations = &radaraccountevaluation.Client{B: backends.API, Key: key}
885888
a.RadarEarlyFraudWarnings = &radarearlyfraudwarning.Client{B: backends.API, Key: key}
889+
a.RadarIssuingAuthorizationEvaluations = &radarissuingauthorizationevaluation.Client{B: backends.API, Key: key}
886890
a.RadarPaymentEvaluations = &radarpaymentevaluation.Client{B: backends.API, Key: key}
887891
a.RadarValueListItems = &radarvaluelistitem.Client{B: backends.API, Key: key}
888892
a.RadarValueLists = &radarvaluelist.Client{B: backends.API, Key: key}

delegatedcheckout_requestedsession.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const (
6464
type DelegatedCheckoutRequestedSessionParams struct {
6565
Params `form:"*"`
6666
// Affiliate attribution data associated with this requested session.
67-
AffiliateAttributions []*DelegatedCheckoutRequestedSessionAffiliateAttributionParams `form:"affiliate_attributions"`
67+
AffiliateAttribution *DelegatedCheckoutRequestedSessionAffiliateAttributionParams `form:"affiliate_attribution"`
6868
// The currency for this requested session.
6969
Currency *string `form:"currency"`
7070
// The customer for this requested session.
@@ -319,7 +319,7 @@ type DelegatedCheckoutRequestedSessionConfirmAffiliateAttributionParams struct {
319319
type DelegatedCheckoutRequestedSessionConfirmParams struct {
320320
Params `form:"*"`
321321
// Affiliate attribution data associated with this requested session.
322-
AffiliateAttributions []*DelegatedCheckoutRequestedSessionConfirmAffiliateAttributionParams `form:"affiliate_attributions"`
322+
AffiliateAttribution *DelegatedCheckoutRequestedSessionConfirmAffiliateAttributionParams `form:"affiliate_attribution"`
323323
// Specifies which fields in the response should be expanded.
324324
Expand []*string `form:"expand"`
325325
// The PaymentMethod to use with the requested session.
@@ -570,7 +570,7 @@ type DelegatedCheckoutRequestedSessionCreateAffiliateAttributionParams struct {
570570
type DelegatedCheckoutRequestedSessionCreateParams struct {
571571
Params `form:"*"`
572572
// Affiliate attribution data associated with this requested session.
573-
AffiliateAttributions []*DelegatedCheckoutRequestedSessionCreateAffiliateAttributionParams `form:"affiliate_attributions"`
573+
AffiliateAttribution *DelegatedCheckoutRequestedSessionCreateAffiliateAttributionParams `form:"affiliate_attribution"`
574574
// The currency for this requested session.
575575
Currency *string `form:"currency"`
576576
// The customer for this requested session.

dispute.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,8 @@ type Dispute struct {
697697
APIResource
698698
// 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).
699699
Amount int64 `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+
AmountToCounter int64 `json:"amount_to_counter"`
700702
// List of zero, one, or two balance transactions that show funds withdrawn and reinstated to your Stripe account as a result of this dispute.
701703
BalanceTransactions []*BalanceTransaction `json:"balance_transactions"`
702704
// ID of the charge that's disputed.

example/generated_examples_test.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18919,9 +18919,8 @@ func TestV2PaymentsOffSessionPaymentPostService(t *testing.T) {
1891918919
Value: stripe.Int64(111972721),
1892018920
Currency: stripe.String(stripe.CurrencyUSD),
1892118921
},
18922-
Cadence: stripe.String("unscheduled"),
18923-
Customer: stripe.String("customer"),
18924-
PaymentMethod: stripe.String("payment_method"),
18922+
Cadence: stripe.String("unscheduled"),
18923+
Customer: stripe.String("customer"),
1892518924
}
1892618925
params.AddMetadata("key", "metadata")
1892718926
testServer := MockServer(
@@ -18941,9 +18940,8 @@ func TestV2PaymentsOffSessionPaymentPostClient(t *testing.T) {
1894118940
Value: stripe.Int64(111972721),
1894218941
Currency: stripe.String(stripe.CurrencyUSD),
1894318942
},
18944-
Cadence: stripe.String("unscheduled"),
18945-
Customer: stripe.String("customer"),
18946-
PaymentMethod: stripe.String("payment_method"),
18943+
Cadence: stripe.String("unscheduled"),
18944+
Customer: stripe.String("customer"),
1894718945
}
1894818946
params.AddMetadata("key", "metadata")
1894918947
testServer := MockServer(

invoiceitem.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,15 @@ const (
2828
InvoiceItemPricingTypeRateCardRateDetails InvoiceItemPricingType = "rate_card_rate_details"
2929
)
3030

31+
// Array of field names that can't be modified. Attempting to update a frozen field returns an error.
32+
type InvoiceItemFrozenField string
33+
34+
// List of values that InvoiceItemFrozenField can take
35+
const (
36+
InvoiceItemFrozenFieldPricing InvoiceItemFrozenField = "pricing"
37+
InvoiceItemFrozenFieldQuantity InvoiceItemFrozenField = "quantity"
38+
)
39+
3140
// 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.
3241
type InvoiceItemParams struct {
3342
Params `form:"*"`
@@ -545,6 +554,8 @@ type InvoiceItem struct {
545554
Discountable bool `json:"discountable"`
546555
// The discounts which apply to the invoice item. Item discounts are applied before invoice discounts. Use `expand[]=discounts` to expand each discount.
547556
Discounts []*Discount `json:"discounts"`
557+
// Array of field names that can't be modified. Attempting to update a frozen field returns an error.
558+
FrozenFields []InvoiceItemFrozenField `json:"frozen_fields"`
548559
// Unique identifier for the object.
549560
ID string `json:"id"`
550561
// The ID of the invoice this invoice item belongs to.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
//
2+
//
3+
// File generated from our OpenAPI spec
4+
//
5+
//
6+
7+
// Package issuingauthorizationevaluation provides the /v1/radar/issuing_authorization_evaluations APIs
8+
package issuingauthorizationevaluation
9+
10+
import (
11+
"net/http"
12+
13+
stripe "github.com/stripe/stripe-go/v84"
14+
)
15+
16+
// Client is used to invoke /v1/radar/issuing_authorization_evaluations APIs.
17+
// Deprecated: Use [stripe.Client] instead. See the [migration guide] for more info.
18+
//
19+
// [migration guide]: https://github.com/stripe/stripe-go/wiki/Migration-guide-for-Stripe-Client
20+
type Client struct {
21+
B stripe.Backend
22+
Key string
23+
}
24+
25+
// Request a fraud risk assessment from Stripe for an Issuing card authorization.
26+
func New(params *stripe.RadarIssuingAuthorizationEvaluationParams) (*stripe.RadarIssuingAuthorizationEvaluation, error) {
27+
return getC().New(params)
28+
}
29+
30+
// Request a fraud risk assessment from Stripe for an Issuing card authorization.
31+
//
32+
// Deprecated: Client methods are deprecated. This should be accessed instead through [stripe.Client]. See the [migration guide] for more info.
33+
//
34+
// [migration guide]: https://github.com/stripe/stripe-go/wiki/Migration-guide-for-Stripe-Client
35+
func (c Client) New(params *stripe.RadarIssuingAuthorizationEvaluationParams) (*stripe.RadarIssuingAuthorizationEvaluation, error) {
36+
issuingauthorizationevaluation := &stripe.RadarIssuingAuthorizationEvaluation{}
37+
err := c.B.Call(
38+
http.MethodPost, "/v1/radar/issuing_authorization_evaluations", c.Key, params, issuingauthorizationevaluation)
39+
return issuingauthorizationevaluation, err
40+
}
41+
42+
func getC() Client {
43+
return Client{stripe.GetBackend(stripe.APIBackend), stripe.Key}
44+
}

0 commit comments

Comments
 (0)