Skip to content

Commit 5132fa5

Browse files
Merge pull request #1718 from stripe/latest-codegen-beta
Update generated code for beta
2 parents 050acca + 7f98e42 commit 5132fa5

File tree

3 files changed

+49
-14
lines changed

3 files changed

+49
-14
lines changed

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
d6534f3d076849c4f6df1414d4c477334e431ffd
1+
c5d9f47b11fbac901125e0621faadddc6ac6eb1e

CHANGELOG.md

Lines changed: 47 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,40 @@
11
# Changelog
22

3+
## 17.1.0 - 2025-10-29
4+
5+
This release changes the pinned API version to `2025-10-29.clover`.
6+
7+
* [#1715](https://github.com/stripe/stripe-ruby/pull/1715) Update generated code
8+
* Improve docs for PaymentIntent related endpoints
9+
* [#1700](https://github.com/stripe/stripe-ruby/pull/1700) Update generated code
10+
* Add support for new resources `PaymentAttemptRecord`, `PaymentIntentAmountDetailsLineItem`, and `PaymentRecord`
11+
* Add support for `list` and `retrieve` methods on resource `PaymentAttemptRecord`
12+
* Add support for `report_payment_attempt_canceled`, `report_payment_attempt_failed`, `report_payment_attempt_guaranteed`, `report_payment_attempt_informational`, `report_payment_attempt`, `report_payment`, `report_refund`, and `retrieve` methods on resource `PaymentRecord`
13+
* Add support for `list` method on resource `PaymentIntentAmountDetailsLineItem`
14+
* Add support for `representative_declaration` on `Account::Company`, `AccountCreateParams::Company`, `AccountUpdateParams::Company`, and `TokenCreateParams::Account::Company`
15+
* Change `Billing::CreditGrantCreateParams.category` to be optional
16+
* Add support for `payment_method_configuration` on `BillingPortal::ConfigurationCreateParams::Feature::PaymentMethodUpdate` and `BillingPortal::ConfigurationUpdateParams::Feature::PaymentMethodUpdate`
17+
* Add support for `twint` on `Checkout::Session::PaymentMethodOption` and `Checkout::SessionCreateParams::PaymentMethodOption`
18+
* Add support for `payment_record_refund` and `type` on `CreditNote::Refund`, `CreditNoteCreateParams::Refund`, `CreditNoteListPreviewLineItemsParams::Refund`, and `CreditNotePreviewParams::Refund`
19+
* Add support for `customer_sheet` and `mobile_payment_element` on `CustomerSession::Component` and `CustomerSessionCreateParams::Component`
20+
* Add support for `provider` on `Customer::Tax`
21+
* Add support for `payment_record` on `InvoiceAttachPaymentParams`, `InvoicePayment::Payment`, and `InvoicePaymentListParams::Payment`
22+
* Change type of `InvoicePaymentListParams::Payment.type` from `literal('payment_intent')` to `enum('payment_intent'|'payment_record')`
23+
* Add support for `amount_details` on `PaymentIntentCaptureParams`, `PaymentIntentConfirmParams`, `PaymentIntentCreateParams`, `PaymentIntentIncrementAuthorizationParams`, and `PaymentIntentUpdateParams`
24+
* Add support for `payment_details` on `PaymentIntentCaptureParams`, `PaymentIntentConfirmParams`, `PaymentIntentCreateParams`, `PaymentIntentIncrementAuthorizationParams`, `PaymentIntentUpdateParams`, and `PaymentIntent`
25+
* Add support for `discount_amount`, `line_items`, `shipping`, and `tax` on `PaymentIntent::AmountDetail`
26+
* Add support for `name_collection` on `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink`
27+
* Add support for `crypto` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, and `Refund::DestinationDetail`
28+
* Add support for `mb_way` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration`
29+
* Add support for `custom` on `PaymentMethodCreateParams` and `PaymentMethod`
30+
* Add support for `excluded_payment_method_types` on `SetupIntentCreateParams`, `SetupIntentUpdateParams`, and `SetupIntent`
31+
* Change `SetupIntent.flow_directions` to be optional
32+
* Add support for `tw` on `Tax::Registration::CountryOption` and `Tax::RegistrationCreateParams::CountryOption`
33+
* Add support for `gip` on `Terminal::Configuration::Tipping`, `Terminal::ConfigurationCreateParams::Tipping`, and `Terminal::ConfigurationUpdateParams::Tipping`
34+
* Add support for `last_seen_at` on `Terminal::Reader`
35+
* Add support for `gt`, `gte`, `lt`, `lte`, and `types` on `V2::Core::EventListParams`
36+
* Change `V2::Core::EventListParams.object_id` to be optional
37+
338
## 17.1.0-beta.1 - 2025-10-09
439
* Contains a breaking bug fix and other improvements from [v17.0.0](https://github.com/stripe/stripe-ruby/releases/tag/v17.0.0).
540

@@ -8,18 +43,18 @@
843

944
## 17.0.0 - 2025-10-09
1045
* [#1698](https://github.com/stripe/stripe-ruby/pull/1698) Remove expanded instance variables after a resource has been updated
11-
- ⚠️ Removes dynamically added instance variables on subsequent non-expanded updates to a resource that had previously been expanded. For example,
12-
```ruby
13-
# expand `payments` field on an invoice
14-
invoice = Stripe::Invoice.retrieve(id: 'in_123', expand: ['payments'])
15-
16-
# `pay` invoice without expanding `payments`, so that field would have stale data
17-
# Use `expand` to keep `payments` like this: `invoice.pay(expand: ['payments'])`
18-
invoice.pay
19-
20-
# This is now nil instead of a stale Hash
21-
invoice.payments
22-
```
46+
- ⚠️ Removes dynamically added instance variables on subsequent non-expanded updates to a resource that had previously been expanded. For example,
47+
```ruby
48+
# expand `payments` field on an invoice
49+
invoice = Stripe::Invoice.retrieve(id: 'in_123', expand: ['payments'])
50+
51+
# `pay` invoice without expanding `payments`, so that field would have stale data
52+
# Use `expand` to keep `payments` like this: `invoice.pay(expand: ['payments'])`
53+
invoice.pay
54+
55+
# This is now nil instead of a stale Hash
56+
invoice.payments
57+
```
2358
* [#1699](https://github.com/stripe/stripe-ruby/pull/1699) Improve event notification example
2459
* [#1693](https://github.com/stripe/stripe-ruby/pull/1693) Improve event notification example
2560
* [#1691](https://github.com/stripe/stripe-ruby/pull/1691) Remove manual promotion code test

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2103
1+
v2104

0 commit comments

Comments
 (0)