639 Commits

Author SHA1 Message Date
David Brownman
cf0db6f745
⚠️ Add strongly typed EventNotifications (#1650)
* manual changes

* move eventNotification to v2 namespace

* updated rbi

* add tests

* Add basic rbi

* generate event data types

* move some things, fix tests

* add missing attributes

* update gemspec, examples, and rbi

* fix example
2025-09-24 15:55:40 -07:00
stripe-openapi[bot]
c279c39d87
Update generated code (#1643)
* Update generated code for v2020 and 2025-09-30.clover

* Update generated code for v2021 and 2025-09-30.clover

* Update generated code for v2022 and 2025-09-30.clover

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
2025-09-23 16:28:52 -07:00
helenye-stripe
401626c2bf
Deserialize inner types into inner classes (#1652) 2025-09-23 10:27:06 -07:00
helenye-stripe
8066e925ca Remove double T.nilable before every emptyable field in update methods (#1633) 2025-09-05 13:14:49 -07:00
David Brownman
6c294313be add support for v2 deleted objects (#1630)
* add support for v2 deleted objects

* run tests?

* fix lint
2025-09-05 13:06:46 -07:00
stripe-openapi[bot]
cbd4d56832
Update generated code (#1631)
* Update generated code for v1929 and 2025-08-27.basil

* Update generated code for v1930 and 2025-08-27.basil

* Update generated code for v1931 and 2025-08-27.basil

* Update generated code for v1932 and 2025-08-27.basil

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Co-authored-by: Ramya Rao <100975018+ramya-stripe@users.noreply.github.com>
2025-08-27 07:31:02 +00:00
helenye-stripe
192d5bee13
Add stripe_client usage tracking for StripeClient (#1637)
* Add usage string for stripe_client usage

* small fixes

* rubocop on cursor code

* remove extra comments
2025-08-25 13:43:23 -07:00
stripe-openapi[bot]
1a18c90c18
Update generated code (#1618)
* Update generated code for v1786 and 2025-05-28.basil

* Update generated code for v1796 and 2025-05-28.basil

* Update generated code for v1800 and 2025-05-28.basil

* Update generated code for v1806 and 2025-06-30.basil

* Update generated code for v1819 and 2025-06-30.basil

* Update generated code for v1819 and 2025-06-30.basil

* Update generated code for v1819 and 2025-06-30.basil

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Co-authored-by: prathmesh-stripe <165320323+prathmesh-stripe@users.noreply.github.com>
2025-07-01 20:05:02 +00:00
helenye-stripe
da9f0e07e4
Disable flaky test in jruby/truffleruby (#1621)
* Disable flaky test for now

* ticket
2025-06-17 10:10:01 -07:00
helenye-stripe
51e8e3264f
Fix event refresh (#1617) 2025-06-04 12:21:33 -07:00
stripe-openapi[bot]
cdce6c3f56
Update generated code for v1719 (#1595)
Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Co-authored-by: Ramya Rao <100975018+ramya-stripe@users.noreply.github.com>
2025-04-24 19:53:00 +00:00
helenye-stripe
88c8720712
Fix endpoints being hit since requests are stubbed (#1591)
* Fix endpoints being hit since requests are stubbed

* Use a fake endpoint
2025-04-24 08:08:17 -07:00
stripe-openapi[bot]
b9d00e2ffa
Update generated code (#1566)
* Update generated code for v1655

* Update generated code for v1668

* Update generated code for v1691

* Update generated code for v1713

* Update generated code for v1718

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Co-authored-by: prathmesh-stripe <165320323+prathmesh-stripe@users.noreply.github.com>
2025-04-23 23:40:10 -07:00
prathmesh-stripe
ca00b676f0
Updated rubocop (#1585) 2025-04-16 12:35:28 -04:00
helenye-stripe
6d34376960
Explicitly pass through custom headers in retrieve (#1576)
* Fix options passing in execute_request_initialize_from

* fix comments

* bug with combine then extract

* rubocop

* more thorough testing

* fix extra call

* pr feedback
2025-04-09 10:02:13 -07:00
helenye-stripe
04f8d1b43a
Validate all instance variable keys returned from the API (#1571)
* Normalize all keys

* instead reject invalid keys

* rubocop

* more easy to read constants
2025-04-08 13:43:23 -07:00
helenye-stripe
dc5174725f
Add RBI annotations for fields and params (#1559)
* Introduce types to ruby

* rubocop

* forgot these files

* other request methods

* more tests, fix for raw request

* Add README entry for types

* rebase and regen
2025-03-31 14:29:41 -07:00
stripe-openapi[bot]
91626d37e8
Support for APIs in the new API version 2025-03-31.basil (#1543)
* Update generated code for v1559

* Update generated code for v1566

* Update generated code for v1572

* Update generated code for v1618

* Update generated code for v1635

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Co-authored-by: prathmesh-stripe <165320323+prathmesh-stripe@users.noreply.github.com>
Co-authored-by: helenye-stripe <111009531+helenye-stripe@users.noreply.github.com>
2025-03-31 11:09:09 -07:00
helenye-stripe
80fb92246d
Remove tests for endpoints that were removed (#1554) 2025-03-26 10:14:48 -07:00
helenye-stripe
cdbade3e57
Remove public idempotent_replayed message (#1553) 2025-03-25 07:18:28 -07:00
prathmesh-stripe
a27751d19f
Fixed broken test caused by removing overrides for invoice/upcoming (#1544) 2025-03-13 18:47:13 -04:00
helenye-stripe
d7e4457373
Fix InvoiceLineItem parent class (#1536) 2025-02-21 08:47:47 -08:00
stripe-openapi[bot]
0cb23f6540
Update generated code (#1510)
* Update generated code for v1421

* Update generated code for v1441

* Update generated code for v1455

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Co-authored-by: helenye-stripe <111009531+helenye-stripe@users.noreply.github.com>
2025-01-27 19:41:17 +00:00
helenye-stripe
6e3950536a
Import global configuration for options not available on StripeClient options (#1512)
* Fix client options not importing global config

* update tests and fix bugs

* lint

* catch NotImplementedError and map for older Ruby

* rubocop todo
2025-01-13 14:23:32 -08:00
jar-stripe
36b1c7c8f0
ThinEvent reason and livemode (#1516)
* added test for parsing v2 thin events with livemode and reason

* added attr_reader to ThinEvent for livemode and reason

* added EventReason and EventReasonRequest type to thin_event.rb
2025-01-13 14:04:14 -08:00
helenye-stripe
8aec85f636
Pass requestor to all deserialized objects including lists (#1507)
* Make sure to pass requestor through to all deserializes

* additional test
2024-12-17 08:59:08 -08:00
helenye-stripe
56b9950250
Fix incorrect key in param encoding (#1488) 2024-11-14 18:28:00 -08:00
helenye-stripe
aa880437dc
Fix APIResource#retrieve not sending stripe_version (#1483)
* Fix retrieve stripe version

* better test
2024-11-06 14:33:20 -08:00
helenye-stripe
fb11d83248
Fix APIResource#retrieve bug not returning instance of custom resources (#1476)
* Fix refresh bug not returning specific instance type for custom resources

* tests
2024-10-28 10:29:13 -07:00
Jonathan Smith
042918c5f8
Always return the result of APIResource#refresh in APIResource.retrieve (#1473)
* Always return the result of .refresh in .retrieve

With the refactor of v13, there are now cases where `self` is not
mutated in the call to refresh and instead a new object is returned.
This change ensures that the new object is always returned by returning
the result of refresh instead.

* Update install instructions for stripe-mock
2024-10-23 08:45:51 -07:00
David Brownman
95f4c9d231
update object tags for meter-related classes (#1471)
* update object tags for meter-related classes

* fix tests
2024-10-18 11:16:58 -07:00
helenye-stripe
2a9407b085
remove parseSnapshotEvent (#1463) 2024-10-01 09:54:13 -07:00
Ramya Rao
39d8736525
Support for APIs in the new API version 2024-09-30.acacia (#1458) 2024-10-01 09:35:59 -07:00
helenye-stripe
aa49a46b82
Add usage to raw request call (#1433) 2024-07-11 14:56:33 -07:00
helenye-stripe
816fe0d0c7
Add raw_request (#1431)
* Add raw request

* Copy readme from beta

* fix readme
2024-07-10 21:34:52 +00:00
prathmesh-stripe
8a5fca9998
Added jruby back and removed coveralls (#1426) 2024-06-26 14:57:08 -04:00
stripe-openapi[bot]
a0542ff720
Update generated code (#1419)
* Update generated code for v1087

* Update generated code for v1088

* Update generated code for v1092

* Update generated code for v1093

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Co-authored-by: Ramya Rao <100975018+ramya-stripe@users.noreply.github.com>
2024-06-24 22:49:12 +00:00
Ramya Rao
6dadabe005
Add missing static method for verify on BankAccount (#1418) 2024-06-17 17:03:55 -07:00
anniel-stripe
4bdc4e27d4
Deprecate StripeClient#request (#1415)
* Deprecate StripeClient#request

* Remove useless variable assignment
2024-06-12 15:47:02 -07:00
Ramya Rao
f774da66a7
Add method to list invoice line items (#1404) 2024-05-24 10:42:33 -07:00
prathmesh-stripe
7f2bdfa718
Pass params to transfer reversal (#1399)
* Pass params to transfer reversal

* Add tests

* Add test for header check
2024-05-08 17:44:14 -04:00
anniel-stripe
f538d421d2
Add more tests for request opts flow (#1398)
* Add more tests for request opts flow

* spurious change

* fix return url
2024-05-06 16:05:56 -07:00
anniel-stripe
a7aadfad4d
Start tracking StripeClient#request usage (#1396)
* Pass stripe_client_request for subsequent request

* codegen-format

* fix test
2024-05-03 10:27:42 -07:00
Ramya Rao
93267e38ab
Sdk release/next major (#1374) 2024-04-10 16:00:43 -07:00
stripe-openapi[bot]
dfea3bdac5
Update generated code (#1372)
* Update generated code for v914

* Update generated code for v918

* Update generated code for v919

* Update generated code for v923

* Update generated code for v935

* Update generated code for v938

* Revert "Update generated code for v935"

This reverts commit 5316ec6e0310a94b496213de077090b03a0fac34.

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Co-authored-by: Ramya Rao <ramya@stripe.com>
2024-04-09 13:36:37 -07:00
helenye-stripe
a12ff9cdb8
Add last_response to StripeObject (#1377)
* Add last_response to StripeObject

* Add more data to test and fix README
2024-04-09 10:52:43 -07:00
helenye-stripe
5eb028cac0
Warm up ca_store in gc tests to make sure they pass in isolation (#1375) 2024-04-08 12:57:21 -07:00
stripe-openapi[bot]
ad00c3e621
Update generated code (#1359)
* Update generated code for v872

* Update generated code for v878
2024-03-14 11:58:37 -07:00
helenye-stripe
4705a5f5f9
Refactor after SDK based generation pattern (#1354)
* Refactor after SDK based generation pattern

* update for object types & reorder
2024-03-11 13:10:30 -07:00
anniel-stripe
3e18ad6338
Fix TaxId tests to support top-level TaxId methods (#1334) 2024-02-22 17:28:36 +00:00