stripe 10.4.0.pre.beta.1 → 10.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/CHANGELOG.md +46 -246
 - data/OPENAPI_VERSION +1 -1
 - data/README.md +0 -11
 - data/VERSION +1 -1
 - data/lib/stripe/api_operations/request.rb +1 -2
 - data/lib/stripe/api_operations/singleton_save.rb +86 -0
 - data/lib/stripe/api_version.rb +0 -1
 - data/lib/stripe/object_types.rb +0 -20
 - data/lib/stripe/resources/file.rb +1 -1
 - data/lib/stripe/resources/financial_connections/account.rb +0 -3
 - data/lib/stripe/resources/invoice.rb +0 -21
 - data/lib/stripe/resources/quote.rb +0 -94
 - data/lib/stripe/resources/subscription_schedule.rb +0 -18
 - data/lib/stripe/resources/tax/settings.rb +1 -1
 - data/lib/stripe/resources/terminal/reader.rb +0 -54
 - data/lib/stripe/resources.rb +0 -19
 - data/lib/stripe/stripe_client.rb +28 -62
 - data/lib/stripe/stripe_configuration.rb +1 -2
 - data/lib/stripe/util.rb +1 -8
 - data/lib/stripe/version.rb +1 -1
 - data/lib/stripe.rb +1 -46
 - metadata +5 -24
 - data/lib/stripe/request_signing_authenticator.rb +0 -79
 - data/lib/stripe/resources/account_notice.rb +0 -14
 - data/lib/stripe/resources/capital/financing_offer.rb +0 -32
 - data/lib/stripe/resources/capital/financing_summary.rb +0 -12
 - data/lib/stripe/resources/capital/financing_transaction.rb +0 -13
 - data/lib/stripe/resources/confirmation_token.rb +0 -11
 - data/lib/stripe/resources/customer_session.rb +0 -12
 - data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -13
 - data/lib/stripe/resources/gift_cards/card.rb +0 -25
 - data/lib/stripe/resources/gift_cards/transaction.rb +0 -56
 - data/lib/stripe/resources/invoice_payment.rb +0 -11
 - data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -69
 - data/lib/stripe/resources/issuing/personalization_design.rb +0 -77
 - data/lib/stripe/resources/issuing/physical_bundle.rb +0 -13
 - data/lib/stripe/resources/margin.rb +0 -14
 - data/lib/stripe/resources/order.rb +0 -89
 - data/lib/stripe/resources/quote_phase.rb +0 -29
 - data/lib/stripe/resources/quote_preview_invoice.rb +0 -42
 - data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -10
 - data/lib/stripe/resources/tax/form.rb +0 -39
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 0dd07d99f579b9d882dc19afc64764c1d61dc26abdbbb611d3695c29a2eabe07
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 01c6ddc9a7bc7cd2334dcc870778a608684ef4a0271185a862e6a8451b1d55c9
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: '0063778e713f31f419d02bd6a3dd0df3fa8531528a7b0bbca3f498989d9d3da3dd0f6309c65a16a669447d3f25fb9a4c1801e6f0ea1d0818075f7be9df07d1ef'
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 126bd64f159d836344be4bf5c985ff2a04ec7f351b2e8c9791a2fbd32176bbff777949254acab4764f01b1c60aeefd386243e8290c968b054c55399638db9e54
         
     | 
    
        data/CHANGELOG.md
    CHANGED
    
    | 
         @@ -1,15 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            # Changelog
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
             
     | 
| 
       4 
     | 
    
         
            -
              
     | 
| 
      
 2 
     | 
    
         
            +
            ## 10.4.0 - 2023-12-22
         
     | 
| 
      
 3 
     | 
    
         
            +
            * [#1303](https://github.com/stripe/stripe-ruby/pull/1303) Update generated code
         
     | 
| 
      
 4 
     | 
    
         
            +
              * Add support for new resource `FinancialConnections.Transaction`
         
     | 
| 
      
 5 
     | 
    
         
            +
              * Add support for `list` and `retrieve` methods on resource `Transaction`
         
     | 
| 
      
 6 
     | 
    
         
            +
              * Add support for `subscribe` and `unsubscribe` methods on resource `FinancialConnections.Account`
         
     | 
| 
      
 7 
     | 
    
         
            +
            * [#1304](https://github.com/stripe/stripe-ruby/pull/1304) Add support for updatable singleton resources
         
     | 
| 
       5 
8 
     | 
    
         | 
| 
       6 
9 
     | 
    
         
             
            ## 10.3.0 - 2023-12-14
         
     | 
| 
       7 
10 
     | 
    
         
             
            * [#1294](https://github.com/stripe/stripe-ruby/pull/1294) Support sending parameters inside singleton retrieve
         
     | 
| 
       8 
11 
     | 
    
         | 
| 
       9 
     | 
    
         
            -
            ## 10.3.0-beta.1 - 2023-11-30
         
     | 
| 
       10 
     | 
    
         
            -
            * [#1298](https://github.com/stripe/stripe-ruby/pull/1298) Update generated code for beta
         
     | 
| 
       11 
     | 
    
         
            -
            * [#1296](https://github.com/stripe/stripe-ruby/pull/1296) Merge master into beta
         
     | 
| 
       12 
     | 
    
         
            -
             
     | 
| 
       13 
12 
     | 
    
         
             
            ## 10.2.0 - 2023-11-30
         
     | 
| 
       14 
13 
     | 
    
         
             
            * [#1292](https://github.com/stripe/stripe-ruby/pull/1292) Update generated code
         
     | 
| 
       15 
14 
     | 
    
         
             
              * Add support for new resources `Climate.Order`, `Climate.Product`, and `Climate.Supplier`
         
     | 
| 
         @@ -22,26 +21,12 @@ 
     | 
|
| 
       22 
21 
     | 
    
         | 
| 
       23 
22 
     | 
    
         
             
            * [#1288](https://github.com/stripe/stripe-ruby/pull/1288) Update generated code
         
     | 
| 
       24 
23 
     | 
    
         | 
| 
       25 
     | 
    
         
            -
            ## 10.2.0-beta.1 - 2023-11-02
         
     | 
| 
       26 
     | 
    
         
            -
            * [#1287](https://github.com/stripe/stripe-ruby/pull/1287) Update generated code for beta
         
     | 
| 
       27 
     | 
    
         
            -
              * Add support for `attach_payment_intent` method on resource `Invoice`
         
     | 
| 
       28 
     | 
    
         
            -
            * [#1285](https://github.com/stripe/stripe-ruby/pull/1285) Update generated code for beta
         
     | 
| 
       29 
24 
     | 
    
         | 
| 
       30 
25 
     | 
    
         
             
            ## 10.1.0 - 2023-11-02
         
     | 
| 
       31 
26 
     | 
    
         
             
            * [#1286](https://github.com/stripe/stripe-ruby/pull/1286) Update generated code
         
     | 
| 
       32 
27 
     | 
    
         
             
              * Add support for new resource `Tax.Registration`
         
     | 
| 
       33 
28 
     | 
    
         
             
              * Add support for `create`, `list`, and `update` methods on resource `Registration`
         
     | 
| 
       34 
29 
     | 
    
         | 
| 
       35 
     | 
    
         
            -
            ## 10.1.0-beta.2 - 2023-10-26
         
     | 
| 
       36 
     | 
    
         
            -
            * [#1285](https://github.com/stripe/stripe-ruby/pull/1285) Update generated code for beta
         
     | 
| 
       37 
     | 
    
         
            -
              * Add support for new resource `Margin`
         
     | 
| 
       38 
     | 
    
         
            -
              * Add support for `create`, `list`, `retrieve`, and `update` methods on resource `Margin`
         
     | 
| 
       39 
     | 
    
         
            -
             
     | 
| 
       40 
     | 
    
         
            -
            ## 10.1.0-beta.1 - 2023-10-17
         
     | 
| 
       41 
     | 
    
         
            -
            * [#1284](https://github.com/stripe/stripe-ruby/pull/1284) Update generated code for beta
         
     | 
| 
       42 
     | 
    
         
            -
              - Update pinned API version to `2023-10-16`
         
     | 
| 
       43 
     | 
    
         
            -
            * [#1282](https://github.com/stripe/stripe-ruby/pull/1282) Update generated code for beta
         
     | 
| 
       44 
     | 
    
         
            -
             
     | 
| 
       45 
30 
     | 
    
         
             
            ## 10.0.0 - 2023-10-16
         
     | 
| 
       46 
31 
     | 
    
         
             
            * This release changes the pinned API version to `2023-10-16`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2023-10-16) and carefully review the API changes before upgrading `stripe-ruby`.
         
     | 
| 
       47 
32 
     | 
    
         
             
            * [#1283](https://github.com/stripe/stripe-ruby/pull/1283) Update generated code
         
     | 
| 
         @@ -49,33 +34,11 @@ 
     | 
|
| 
       49 
34 
     | 
    
         
             
            * [#1281](https://github.com/stripe/stripe-ruby/pull/1281) Update generated code
         
     | 
| 
       50 
35 
     | 
    
         
             
              * Documentation only changes
         
     | 
| 
       51 
36 
     | 
    
         | 
| 
       52 
     | 
    
         
            -
            ## 9.5.0-beta.2 - 2023-10-12
         
     | 
| 
       53 
     | 
    
         
            -
            * [#1280](https://github.com/stripe/stripe-ruby/pull/1280) Update generated code for beta
         
     | 
| 
       54 
     | 
    
         
            -
              * Add support for new resources `AccountNotice` and `Issuing.CreditUnderwritingRecord`
         
     | 
| 
       55 
     | 
    
         
            -
              * Add support for `list`, `retrieve`, and `update` methods on resource `AccountNotice`
         
     | 
| 
       56 
     | 
    
         
            -
              * Add support for `correct`, `create_from_application`, `create_from_proactive_review`, `list`, `report_decision`, and `retrieve` methods on resource `CreditUnderwritingRecord`
         
     | 
| 
       57 
     | 
    
         
            -
             
     | 
| 
       58 
     | 
    
         
            -
            ## 9.5.0-beta.1 - 2023-10-05
         
     | 
| 
       59 
     | 
    
         
            -
            * [#1278](https://github.com/stripe/stripe-ruby/pull/1278) Update generated code for beta
         
     | 
| 
       60 
     | 
    
         
            -
              * Add support for `mark_draft` and `mark_stale` methods on resource `Quote`
         
     | 
| 
       61 
     | 
    
         
            -
              * Remove support for `draft_quote` and `mark_stale_quote` methods on resource `Quote`
         
     | 
| 
       62 
     | 
    
         
            -
              * Rename `preview_invoice_lines` to `list_preview_invoice_lines` on resource  `Quote`
         
     | 
| 
       63 
     | 
    
         
            -
             
     | 
| 
       64 
37 
     | 
    
         
             
            ## 9.4.0 - 2023-10-05
         
     | 
| 
       65 
38 
     | 
    
         
             
            * [#1277](https://github.com/stripe/stripe-ruby/pull/1277) Update generated code
         
     | 
| 
       66 
39 
     | 
    
         
             
              * Add support for new resources `Issuing.Token`
         
     | 
| 
       67 
40 
     | 
    
         
             
              * Add support for `list`, `retrieve`, and `update` methods on resource `Token`
         
     | 
| 
       68 
41 
     | 
    
         | 
| 
       69 
     | 
    
         
            -
            ## 9.4.0-beta.3 - 2023-09-28
         
     | 
| 
       70 
     | 
    
         
            -
            * [#1276](https://github.com/stripe/stripe-ruby/pull/1276) Update generated code for beta
         
     | 
| 
       71 
     | 
    
         
            -
              * Rename resources `Issuing.CardDesign` and `Issuing.CardBundle` to `Issuing.PersonalizationDesign` and `Issuing.PhysicalBundle`
         
     | 
| 
       72 
     | 
    
         
            -
             
     | 
| 
       73 
     | 
    
         
            -
            ## 9.4.0-beta.2 - 2023-09-21
         
     | 
| 
       74 
     | 
    
         
            -
            * [#1273](https://github.com/stripe/stripe-ruby/pull/1273) Update generated code for beta
         
     | 
| 
       75 
     | 
    
         
            -
             
     | 
| 
       76 
     | 
    
         
            -
            ## 9.4.0-beta.1 - 2023-09-14
         
     | 
| 
       77 
     | 
    
         
            -
             * Updated stable APIs to the latest version
         
     | 
| 
       78 
     | 
    
         
            -
             
     | 
| 
       79 
42 
     | 
    
         
             
            ## 9.3.0 - 2023-09-14
         
     | 
| 
       80 
43 
     | 
    
         
             
            * [#1272](https://github.com/stripe/stripe-ruby/pull/1272) Update generated code
         
     | 
| 
       81 
44 
     | 
    
         
             
              * Add support for new resource `PaymentMethodConfiguration`
         
     | 
| 
         @@ -84,38 +47,18 @@ 
     | 
|
| 
       84 
47 
     | 
    
         
             
              * Add support for `capture`, `create`, `expire`, `increment`, and `reverse` test helper methods on resource `Issuing.Authorization`
         
     | 
| 
       85 
48 
     | 
    
         
             
              * Add support for `create_force_capture`, `create_unlinked_refund`, and `refund` test helper methods on resource `Issuing.Transaction`
         
     | 
| 
       86 
49 
     | 
    
         | 
| 
       87 
     | 
    
         
            -
            ## 9.3.0-beta.1 - 2023-09-07
         
     | 
| 
       88 
     | 
    
         
            -
            * [#1269](https://github.com/stripe/stripe-ruby/pull/1269) Update generated code for beta
         
     | 
| 
       89 
     | 
    
         
            -
              * Release specs are identical.
         
     | 
| 
       90 
     | 
    
         
            -
            * [#1268](https://github.com/stripe/stripe-ruby/pull/1268) Update generated code for beta
         
     | 
| 
       91 
     | 
    
         
            -
              * Remove support for `submit_card` test helper method on resource `Issuing.Card`
         
     | 
| 
       92 
     | 
    
         
            -
            * [#1265](https://github.com/stripe/stripe-ruby/pull/1265) Update generated code for beta
         
     | 
| 
       93 
     | 
    
         
            -
              * Rename `Quote.preview_invoices` to `QuotePreviewInvoice.list` and `Quote.preview_schedules` to `QuotePreviewSchedules.list`
         
     | 
| 
       94 
     | 
    
         
            -
            * [#1264](https://github.com/stripe/stripe-ruby/pull/1264) Update generated code for beta
         
     | 
| 
       95 
     | 
    
         
            -
              * Add support for new resources `QuotePreviewInvoice` and `QuotePreviewSchedule`
         
     | 
| 
       96 
     | 
    
         
            -
            * [#1259](https://github.com/stripe/stripe-ruby/pull/1259) Update generated code for beta
         
     | 
| 
       97 
     | 
    
         
            -
             
     | 
| 
       98 
     | 
    
         
            -
            * [#1257](https://github.com/stripe/stripe-ruby/pull/1257) Update generated code for beta
         
     | 
| 
       99 
     | 
    
         
            -
             
     | 
| 
       100 
     | 
    
         
            -
            * [#1254](https://github.com/stripe/stripe-ruby/pull/1254) Update generated code for beta
         
     | 
| 
       101 
     | 
    
         
            -
              * Add support for `submit_card` test helper method on resource `Issuing.Card`
         
     | 
| 
       102 
     | 
    
         
            -
            * [#1252](https://github.com/stripe/stripe-ruby/pull/1252) Remove developer_message support
         
     | 
| 
       103 
     | 
    
         
            -
             
     | 
| 
       104 
50 
     | 
    
         
             
            ## 9.2.0 - 2023-09-07
         
     | 
| 
       105 
51 
     | 
    
         
             
            * [#1267](https://github.com/stripe/stripe-ruby/pull/1267) Update generated code
         
     | 
| 
       106 
52 
     | 
    
         
             
              * Add support for new resource `PaymentMethodDomain`
         
     | 
| 
       107 
53 
     | 
    
         
             
              * Add support for `create`, `list`, `retrieve`, `update`, and `validate` methods on resource `PaymentMethodDomain`
         
     | 
| 
       108 
54 
     | 
    
         | 
| 
       109 
     | 
    
         
            -
            ## 9.2.0-beta.1 - 2023-08-31
         
     | 
| 
       110 
     | 
    
         
            -
            * [#1265](https://github.com/stripe/stripe-ruby/pull/1265) Update generated code for beta
         
     | 
| 
       111 
     | 
    
         
            -
              * Rename `Quote.preview_invoices` to `QuotePreviewInvoice.list` and `Quote.preview_schedules` to `QuotePreviewSchedules.list`
         
     | 
| 
       112 
     | 
    
         
            -
             
     | 
| 
       113 
55 
     | 
    
         
             
            ## 9.1.0 - 2023-08-31
         
     | 
| 
       114 
56 
     | 
    
         
             
            * [#1266](https://github.com/stripe/stripe-ruby/pull/1266) Update generated code
         
     | 
| 
       115 
57 
     | 
    
         
             
              * Add support for new resource `AccountSession`
         
     | 
| 
       116 
58 
     | 
    
         
             
              * Add support for `create` method on resource `AccountSession`
         
     | 
| 
       117 
59 
     | 
    
         
             
            * [#1262](https://github.com/stripe/stripe-ruby/pull/1262) Explicitly format timestamp in SignatureVerificationError message
         
     | 
| 
       118 
60 
     | 
    
         | 
| 
      
 61 
     | 
    
         
            +
             
     | 
| 
       119 
62 
     | 
    
         
             
            ## 9.0.0 - 2023-08-16
         
     | 
| 
       120 
63 
     | 
    
         
             
            **⚠️ ACTION REQUIRED: the breaking change in this release likely affects you ⚠️**
         
     | 
| 
       121 
64 
     | 
    
         | 
| 
         @@ -148,39 +91,10 @@ 
     | 
|
| 
       148 
91 
     | 
    
         | 
| 
       149 
92 
     | 
    
         
             
              That is, instead of upgrading stripe-ruby and separately upgrading your Stripe API Version through the Stripe Dashboard. whenever you upgrade major versions of stripe-ruby, you should also upgrade your integration to be compatible with the latest Stripe API version.
         
     | 
| 
       150 
93 
     | 
    
         | 
| 
       151 
     | 
    
         
            -
            ## 9.0.0-beta.1 - 2023-08-24
         
     | 
| 
       152 
     | 
    
         
            -
            * [#1264](https://github.com/stripe/stripe-ruby/pull/1264) Update generated code for beta
         
     | 
| 
       153 
     | 
    
         
            -
              * Add support for new resources `QuotePreviewInvoice` and `QuotePreviewSchedule`
         
     | 
| 
       154 
     | 
    
         
            -
            * [#1259](https://github.com/stripe/stripe-ruby/pull/1259) Update generated code for beta
         
     | 
| 
       155 
     | 
    
         
            -
             
     | 
| 
       156 
     | 
    
         
            -
            ## 8.8.0-beta.1 - 2023-08-10
         
     | 
| 
       157 
     | 
    
         
            -
            * [#1257](https://github.com/stripe/stripe-ruby/pull/1257) Update generated code for beta
         
     | 
| 
       158 
     | 
    
         
            -
              * Updated stable APIs to the latest version
         
     | 
| 
       159 
     | 
    
         
            -
             
     | 
| 
       160 
94 
     | 
    
         
             
            ## 8.7.0 - 2023-08-10
         
     | 
| 
       161 
95 
     | 
    
         
             
            * [#1256](https://github.com/stripe/stripe-ruby/pull/1256) Update generated code
         
     | 
| 
       162 
96 
     | 
    
         
             
              Add resources `Tax::CalculationLineItem`, `Tax::TransactionLineItem`, and `Treasury::FinancialAccountFeatures`. These resources have no methods on them, but do represent the return type of methods elsewhere.
         
     | 
| 
       163 
97 
     | 
    
         | 
| 
       164 
     | 
    
         
            -
            ## 8.7.0-beta.3 - 2023-08-03
         
     | 
| 
       165 
     | 
    
         
            -
            * [#1254](https://github.com/stripe/stripe-ruby/pull/1254) Update generated code for beta
         
     | 
| 
       166 
     | 
    
         
            -
              * Add support for `submit_card` test helper method on resource `Issuing.Card`
         
     | 
| 
       167 
     | 
    
         
            -
            * [#1252](https://github.com/stripe/stripe-ruby/pull/1252) Remove developer_message support
         
     | 
| 
       168 
     | 
    
         
            -
             
     | 
| 
       169 
     | 
    
         
            -
            ## 8.7.0-beta.2 - 2023-07-28
         
     | 
| 
       170 
     | 
    
         
            -
            * [#1251](https://github.com/stripe/stripe-ruby/pull/1251) Update generated code for beta
         
     | 
| 
       171 
     | 
    
         
            -
              * Add support for new resource `Tax.Form`
         
     | 
| 
       172 
     | 
    
         
            -
              * Add support for `list`, `pdf`, and `retrieve` methods on resource `Form`
         
     | 
| 
       173 
     | 
    
         
            -
            * [#1249](https://github.com/stripe/stripe-ruby/pull/1249) Update generated code for beta
         
     | 
| 
       174 
     | 
    
         
            -
            * [#1246](https://github.com/stripe/stripe-ruby/pull/1246) Update generated code for beta
         
     | 
| 
       175 
     | 
    
         
            -
             
     | 
| 
       176 
     | 
    
         
            -
            ## 8.7.0-beta.1 - 2023-07-13
         
     | 
| 
       177 
     | 
    
         
            -
            * [#1245](https://github.com/stripe/stripe-ruby/pull/1245) Update generated code for beta
         
     | 
| 
       178 
     | 
    
         
            -
              Release specs are identical.
         
     | 
| 
       179 
     | 
    
         
            -
            * [#1243](https://github.com/stripe/stripe-ruby/pull/1243) Update generated code for beta
         
     | 
| 
       180 
     | 
    
         
            -
              * Add support for new resource `PaymentMethodConfiguration`
         
     | 
| 
       181 
     | 
    
         
            -
              * Add support for `create`, `list`, `retrieve`, and `update` methods on resource `PaymentMethodConfiguration`
         
     | 
| 
       182 
     | 
    
         
            -
            * [#1239](https://github.com/stripe/stripe-ruby/pull/1239) Update generated code for beta
         
     | 
| 
       183 
     | 
    
         
            -
             
     | 
| 
       184 
98 
     | 
    
         
             
            ## 8.6.0 - 2023-07-13
         
     | 
| 
       185 
99 
     | 
    
         
             
            * [#1244](https://github.com/stripe/stripe-ruby/pull/1244) Update generated code
         
     | 
| 
       186 
100 
     | 
    
         
             
              * Add support for new resource `Tax.Settings`
         
     | 
| 
         @@ -209,37 +123,6 @@ 
     | 
|
| 
       209 
123 
     | 
    
         | 
| 
       210 
124 
     | 
    
         
             
            * [#1204](https://github.com/stripe/stripe-ruby/pull/1204) Update generated code
         
     | 
| 
       211 
125 
     | 
    
         | 
| 
       212 
     | 
    
         
            -
            ## 8.6.0-beta.6 - 2023-06-22
         
     | 
| 
       213 
     | 
    
         
            -
            * [#1237](https://github.com/stripe/stripe-ruby/pull/1237) Update generated code for beta
         
     | 
| 
       214 
     | 
    
         
            -
              * Add support for new resource `CustomerSession`
         
     | 
| 
       215 
     | 
    
         
            -
              * Add support for `create` method on resource `CustomerSession`
         
     | 
| 
       216 
     | 
    
         
            -
            * [#1233](https://github.com/stripe/stripe-ruby/pull/1233) Update generated code for beta
         
     | 
| 
       217 
     | 
    
         
            -
            * [#1229](https://github.com/stripe/stripe-ruby/pull/1229) Update generated code for beta
         
     | 
| 
       218 
     | 
    
         
            -
             
     | 
| 
       219 
     | 
    
         
            -
            ## 8.6.0-beta.5 - 2023-06-01
         
     | 
| 
       220 
     | 
    
         
            -
            * [#1227](https://github.com/stripe/stripe-ruby/pull/1227) Update generated code for beta
         
     | 
| 
       221 
     | 
    
         
            -
            * [#1228](https://github.com/stripe/stripe-ruby/pull/1228) Document raw_request
         
     | 
| 
       222 
     | 
    
         
            -
            * [#1222](https://github.com/stripe/stripe-ruby/pull/1222) Update generated code for beta
         
     | 
| 
       223 
     | 
    
         
            -
            * [#1224](https://github.com/stripe/stripe-ruby/pull/1224) Handle developer message in preview error responses
         
     | 
| 
       224 
     | 
    
         
            -
             
     | 
| 
       225 
     | 
    
         
            -
            ## 8.6.0-beta.4 - 2023-05-19
         
     | 
| 
       226 
     | 
    
         
            -
            * [#1220](https://github.com/stripe/stripe-ruby/pull/1220) Update generated code for beta
         
     | 
| 
       227 
     | 
    
         
            -
              * Add support for `subscribe` and `unsubscribe` methods on resource `FinancialConnections.Account`
         
     | 
| 
       228 
     | 
    
         
            -
            * [#1217](https://github.com/stripe/stripe-ruby/pull/1217) Add raw_request
         
     | 
| 
       229 
     | 
    
         
            -
            * [#1216](https://github.com/stripe/stripe-ruby/pull/1216) Update generated code for beta
         
     | 
| 
       230 
     | 
    
         
            -
            * [#1214](https://github.com/stripe/stripe-ruby/pull/1214) Update generated code for beta
         
     | 
| 
       231 
     | 
    
         
            -
             
     | 
| 
       232 
     | 
    
         
            -
            ## 8.6.0-beta.3 - 2023-04-17
         
     | 
| 
       233 
     | 
    
         
            -
            * [#1211](https://github.com/stripe/stripe-ruby/pull/1211) Update generated code for beta
         
     | 
| 
       234 
     | 
    
         
            -
            * [#1210](https://github.com/stripe/stripe-ruby/pull/1210), [#1212](https://github.com/stripe/stripe-ruby/pull/1212), [#1213](https://github.com/stripe/stripe-ruby/pull/1213) Add support for request signing
         
     | 
| 
       235 
     | 
    
         
            -
             
     | 
| 
       236 
     | 
    
         
            -
            ## 8.6.0-beta.2 - 2023-04-13
         
     | 
| 
       237 
     | 
    
         
            -
            * [#1206](https://github.com/stripe/stripe-ruby/pull/1206) Update generated code for beta
         
     | 
| 
       238 
     | 
    
         
            -
              * Add support for `collect_payment_method` and `confirm_payment_intent` methods on resource `Terminal.Reader`
         
     | 
| 
       239 
     | 
    
         
            -
            * [#1205](https://github.com/stripe/stripe-ruby/pull/1205) Update generated code for beta
         
     | 
| 
       240 
     | 
    
         
            -
             
     | 
| 
       241 
     | 
    
         
            -
            ## 8.6.0-beta.1 - 2023-03-30
         
     | 
| 
       242 
     | 
    
         
            -
            * [#1202](https://github.com/stripe/stripe-ruby/pull/1202) Update generated code for beta
         
     | 
| 
       243 
126 
     | 
    
         | 
| 
       244 
127 
     | 
    
         
             
            ## 8.5.0 - 2023-03-30
         
     | 
| 
       245 
128 
     | 
    
         
             
            * [#1203](https://github.com/stripe/stripe-ruby/pull/1203) Update generated code
         
     | 
| 
         @@ -247,11 +130,6 @@ 
     | 
|
| 
       247 
130 
     | 
    
         
             
                * This is not a breaking change, as this method was deprecated before the Tax Transactions API was released in favor of the `create_from_calculation` method.
         
     | 
| 
       248 
131 
     | 
    
         
             
            * [#1201](https://github.com/stripe/stripe-ruby/pull/1201) Update save deprecation message
         
     | 
| 
       249 
132 
     | 
    
         | 
| 
       250 
     | 
    
         
            -
            ## 8.5.0-beta.1 - 2023-03-23
         
     | 
| 
       251 
     | 
    
         
            -
            * [#1194](https://github.com/stripe/stripe-ruby/pull/1194) Update generated code for beta (new)
         
     | 
| 
       252 
     | 
    
         
            -
              * Add support for new resources `Tax.CalculationLineItem` and `Tax.TransactionLineItem`
         
     | 
| 
       253 
     | 
    
         
            -
              * Add support for `collect_inputs` method on resource `Terminal.Reader`
         
     | 
| 
       254 
     | 
    
         
            -
             
     | 
| 
       255 
133 
     | 
    
         
             
            ## 8.4.0 - 2023-03-23
         
     | 
| 
       256 
134 
     | 
    
         
             
            * [#1197](https://github.com/stripe/stripe-ruby/pull/1197) Update generated code (new)
         
     | 
| 
       257 
135 
     | 
    
         
             
              * Add support for new resources `Tax.CalculationLineItem`, `Tax.Calculation`, `Tax.TransactionLineItem`, and `Tax.Transaction`
         
     | 
| 
         @@ -259,91 +137,18 @@ 
     | 
|
| 
       259 
137 
     | 
    
         
             
              * Add support for `create_from_calculation`, `create_reversal`, `create`, `list_line_items`, and `retrieve` methods on resource `Transaction`
         
     | 
| 
       260 
138 
     | 
    
         
             
            * [#1152](https://github.com/stripe/stripe-ruby/pull/1152) Symbolize hash keys inside `convert_to_stripe_object_with_params`
         
     | 
| 
       261 
139 
     | 
    
         | 
| 
       262 
     | 
    
         
            -
            ## 8.4.0-beta.4 - 2023-03-16
         
     | 
| 
       263 
     | 
    
         
            -
            * [#1189](https://github.com/stripe/stripe-ruby/pull/1189) Update generated code for beta (new)
         
     | 
| 
       264 
     | 
    
         
            -
              * Add support for `create_from_calculation` method on resource `Tax.Transaction`
         
     | 
| 
       265 
     | 
    
         
            -
            * [#1188](https://github.com/stripe/stripe-ruby/pull/1188) Update generated code for beta (new)
         
     | 
| 
       266 
     | 
    
         
            -
              * Remove support for resources `Capital.FinancingOffer` and `Capital.FinancingSummary`
         
     | 
| 
       267 
     | 
    
         
            -
              * Remove support for `list`, `mark_delivered`, and `retrieve` methods on resource `FinancingOffer`
         
     | 
| 
       268 
     | 
    
         
            -
              * Remove support for `retrieve` method on resource `FinancingSummary`
         
     | 
| 
       269 
     | 
    
         
            -
            * [#1187](https://github.com/stripe/stripe-ruby/pull/1187) Merge upstream master
         
     | 
| 
       270 
     | 
    
         
            -
             
     | 
| 
       271 
     | 
    
         
            -
            ## 8.4.0-beta.3 - 2023-03-09
         
     | 
| 
       272 
     | 
    
         
            -
            * [#1184](https://github.com/stripe/stripe-ruby/pull/1184) API Updates for beta branch
         
     | 
| 
       273 
     | 
    
         
            -
              * Updated stable APIs to the latest version
         
     | 
| 
       274 
     | 
    
         
            -
              * Remove support for `list_transactions` method on resource `Tax.Transaction`
         
     | 
| 
       275 
     | 
    
         
            -
             
     | 
| 
       276 
     | 
    
         
            -
            ## 8.4.0-beta.2 - 2023-03-03
         
     | 
| 
       277 
     | 
    
         
            -
            * [#1183](https://github.com/stripe/stripe-ruby/pull/1183) API Updates for beta branch
         
     | 
| 
       278 
     | 
    
         
            -
              * Updated stable APIs to the latest version
         
     | 
| 
       279 
     | 
    
         
            -
              * Add support for new resources `Issuing.CardBundle` and `Issuing.CardDesign`
         
     | 
| 
       280 
     | 
    
         
            -
              * Add support for `list` and `retrieve` methods on resource `CardBundle`
         
     | 
| 
       281 
     | 
    
         
            -
              * Add support for `list`, `retrieve`, and `update` methods on resource `CardDesign`
         
     | 
| 
       282 
     | 
    
         
            -
             
     | 
| 
       283 
     | 
    
         
            -
            ## 8.4.0-beta.1 - 2023-02-23
         
     | 
| 
       284 
     | 
    
         
            -
            * [#1182](https://github.com/stripe/stripe-ruby/pull/1182) API Updates for beta branch
         
     | 
| 
       285 
     | 
    
         
            -
              * Updated stable APIs to the latest version
         
     | 
| 
       286 
     | 
    
         
            -
             
     | 
| 
       287 
140 
     | 
    
         
             
            ## 8.3.0 - 2023-02-16
         
     | 
| 
       288 
141 
     | 
    
         
             
            * [#1175](https://github.com/stripe/stripe-ruby/pull/1175) API Updates
         
     | 
| 
       289 
142 
     | 
    
         
             
              * Add support for `refund_payment` method on resource `Terminal.Reader`
         
     | 
| 
       290 
143 
     | 
    
         | 
| 
       291 
     | 
    
         
            -
            ## 8.3.0-beta.1 - 2023-02-02
         
     | 
| 
       292 
     | 
    
         
            -
            * [#1174](https://github.com/stripe/stripe-ruby/pull/1174) API Updates for beta branch
         
     | 
| 
       293 
     | 
    
         
            -
              * Updated stable APIs to the latest version
         
     | 
| 
       294 
     | 
    
         
            -
              * Add support for new resource `FinancialConnections.Transaction`
         
     | 
| 
       295 
     | 
    
         
            -
              * Add support for `list` method on resource `Transaction`
         
     | 
| 
       296 
     | 
    
         
            -
             
     | 
| 
       297 
144 
     | 
    
         
             
            ## 8.2.0 - 2023-02-02
         
     | 
| 
       298 
145 
     | 
    
         
             
            * [#1173](https://github.com/stripe/stripe-ruby/pull/1173) API Updates
         
     | 
| 
       299 
146 
     | 
    
         
             
              * Add support for `resume` method on resource `Subscription`
         
     | 
| 
       300 
147 
     | 
    
         
             
            * [#1171](https://github.com/stripe/stripe-ruby/pull/1171) Remove unused `partial` param from `initialize_from`
         
     | 
| 
       301 
148 
     | 
    
         | 
| 
       302 
     | 
    
         
            -
            ## 8.2.0-beta.3 - 2023-01-26
         
     | 
| 
       303 
     | 
    
         
            -
            * [#1172](https://github.com/stripe/stripe-ruby/pull/1172) API Updates for beta branch
         
     | 
| 
       304 
     | 
    
         
            -
              * Updated stable APIs to the latest version
         
     | 
| 
       305 
     | 
    
         
            -
              * Add support for `list_transactions` method on resource `Tax.Transaction`
         
     | 
| 
       306 
     | 
    
         
            -
             
     | 
| 
       307 
     | 
    
         
            -
            ## 8.2.0-beta.2 - 2023-01-19
         
     | 
| 
       308 
     | 
    
         
            -
            * [#1170](https://github.com/stripe/stripe-ruby/pull/1170) API Updates for beta branch
         
     | 
| 
       309 
     | 
    
         
            -
              * Updated stable APIs to the latest version
         
     | 
| 
       310 
     | 
    
         
            -
              * Add support for `Tax.Settings` resource.
         
     | 
| 
       311 
     | 
    
         
            -
             
     | 
| 
       312 
     | 
    
         
            -
            ## 8.2.0-beta.1 - 2023-01-12
         
     | 
| 
       313 
     | 
    
         
            -
            * [#1167](https://github.com/stripe/stripe-ruby/pull/1167) API Updates for beta branch
         
     | 
| 
       314 
     | 
    
         
            -
              * Updated stable APIs to the latest version
         
     | 
| 
       315 
     | 
    
         
            -
              * Change `quote.draft_quote` implementation to from calling `POST /v1/quotes/{quote}/draft` to `POST /v1/quotes/{quote}/mark_draft`
         
     | 
| 
       316 
     | 
    
         
            -
              * Add support for `Tax::Register` resource
         
     | 
| 
       317 
     | 
    
         
            -
             
     | 
| 
       318 
149 
     | 
    
         
             
            ## 8.1.0 - 2023-01-12
         
     | 
| 
       319 
150 
     | 
    
         
             
            * [#1162](https://github.com/stripe/stripe-ruby/pull/1162) Improve request events instrumentation
         
     | 
| 
       320 
151 
     | 
    
         | 
| 
       321 
     | 
    
         
            -
            ## 8.1.0-beta.4 - 2023-01-05
         
     | 
| 
       322 
     | 
    
         
            -
            * [#1164](https://github.com/stripe/stripe-ruby/pull/1164) API Updates for beta branch
         
     | 
| 
       323 
     | 
    
         
            -
              * Updated stable APIs to the latest version
         
     | 
| 
       324 
     | 
    
         
            -
              * Add support for `mark_stale_quote` method on resource `Quote`
         
     | 
| 
       325 
     | 
    
         
            -
             
     | 
| 
       326 
     | 
    
         
            -
            ## 8.1.0-beta.3 - 2022-12-22
         
     | 
| 
       327 
     | 
    
         
            -
            * [#1158](https://github.com/stripe/stripe-ruby/pull/1158) API Updates for beta branch
         
     | 
| 
       328 
     | 
    
         
            -
              * Updated stable APIs to the latest version
         
     | 
| 
       329 
     | 
    
         
            -
              * Move `TaxCalculation` and `TaxTransaction` to `Tax::Calculation` and `Tax::Transaction`.
         
     | 
| 
       330 
     | 
    
         
            -
             
     | 
| 
       331 
     | 
    
         
            -
            ## 8.1.0-beta.2 - 2022-12-15
         
     | 
| 
       332 
     | 
    
         
            -
            * [#1156](https://github.com/stripe/stripe-ruby/pull/1156) API Updates for beta branch
         
     | 
| 
       333 
     | 
    
         
            -
              * Updated stable APIs to the latest version
         
     | 
| 
       334 
     | 
    
         
            -
              * Add support for new resources `TaxCalculation`, and `TaxTransaction`
         
     | 
| 
       335 
     | 
    
         
            -
              * Add support for `create` and `list_line_items` methods on resource `TaxCalculation`
         
     | 
| 
       336 
     | 
    
         
            -
              * Add support for `create_reversal`, `create`, and `retrieve` methods on resource `TaxTransaction`
         
     | 
| 
       337 
     | 
    
         
            -
            * [#1155](https://github.com/stripe/stripe-ruby/pull/1155) API Updates for beta branch
         
     | 
| 
       338 
     | 
    
         
            -
              * Updated stable APIs to the latest version
         
     | 
| 
       339 
     | 
    
         
            -
              * Add support for new resource `QuoteLine`.
         
     | 
| 
       340 
     | 
    
         
            -
             
     | 
| 
       341 
     | 
    
         
            -
            ## 8.1.0-beta.1 - 2022-12-08
         
     | 
| 
       342 
     | 
    
         
            -
            * [#1153](https://github.com/stripe/stripe-ruby/pull/1153) API Updates for beta branch
         
     | 
| 
       343 
     | 
    
         
            -
              * Updated stable APIs to the latest version
         
     | 
| 
       344 
     | 
    
         
            -
            * [#1146](https://github.com/stripe/stripe-ruby/pull/1146) API Updates for beta branch
         
     | 
| 
       345 
     | 
    
         
            -
              * Updated stable APIs to the latest version
         
     | 
| 
       346 
     | 
    
         
            -
             
     | 
| 
       347 
152 
     | 
    
         
             
            ## 8.0.0 - 2022-11-16
         
     | 
| 
       348 
153 
     | 
    
         
             
            * [#1144](https://github.com/stripe/stripe-ruby/pull/1144) Next major release changes
         
     | 
| 
       349 
154 
     | 
    
         | 
| 
         @@ -351,29 +156,30 @@ Breaking changes that arose during code generation of the library that we postpo 
     | 
|
| 
       351 
156 
     | 
    
         | 
| 
       352 
157 
     | 
    
         
             
            "⚠️" symbol highlights breaking changes.
         
     | 
| 
       353 
158 
     | 
    
         | 
| 
       354 
     | 
    
         
            -
             
     | 
| 
       355 
     | 
    
         
            -
             
     | 
| 
       356 
     | 
    
         
            -
               
     | 
| 
       357 
     | 
    
         
            -
             
     | 
| 
       358 
     | 
    
         
            -
               
     | 
| 
       359 
     | 
    
         
            -
             
     | 
| 
       360 
     | 
    
         
            -
             
     | 
| 
       361 
     | 
    
         
            -
             
     | 
| 
      
 159 
     | 
    
         
            +
            ### Deprecated
         
     | 
| 
      
 160 
     | 
    
         
            +
            - The `save` method is deprecated. Prefer the static `update` method that doesn't require retrieval of the resource to update it.
         
     | 
| 
      
 161 
     | 
    
         
            +
              ``` ruby
         
     | 
| 
      
 162 
     | 
    
         
            +
              # before
         
     | 
| 
      
 163 
     | 
    
         
            +
              refund = Stripe::Refund.retrieve("re_123")
         
     | 
| 
      
 164 
     | 
    
         
            +
              refund.description = "Refund description"
         
     | 
| 
      
 165 
     | 
    
         
            +
              refund.save
         
     | 
| 
      
 166 
     | 
    
         
            +
              
         
     | 
| 
      
 167 
     | 
    
         
            +
              # after
         
     | 
| 
      
 168 
     | 
    
         
            +
              Stripe::Refund.update("re_123", description: "Refund description")
         
     | 
| 
      
 169 
     | 
    
         
            +
              ```
         
     | 
| 
       362 
170 
     | 
    
         | 
| 
       363 
     | 
    
         
            -
             
     | 
| 
       364 
     | 
    
         
            -
             
     | 
| 
       365 
     | 
    
         
            -
             
     | 
| 
       366 
     | 
    
         
            -
             
     | 
| 
      
 171 
     | 
    
         
            +
            ### ⚠️ Removed
         
     | 
| 
      
 172 
     | 
    
         
            +
            - Removed deprecated `Sku` resource.
         
     | 
| 
      
 173 
     | 
    
         
            +
            - Removed deprecated `Orders` resource.
         
     | 
| 
      
 174 
     | 
    
         
            +
            - Removed deprecated `delete` method on `Subscription` resource. Please use `cancel` method instead.
         
     | 
| 
      
 175 
     | 
    
         
            +
              ```ruby
         
     | 
| 
      
 176 
     | 
    
         
            +
              # before
         
     | 
| 
      
 177 
     | 
    
         
            +
              Stripe::Subscription::delete("sub_12345")
         
     | 
| 
       367 
178 
     | 
    
         | 
| 
       368 
     | 
    
         
            -
             
     | 
| 
       369 
     | 
    
         
            -
             
     | 
| 
       370 
     | 
    
         
            -
               
     | 
| 
       371 
     | 
    
         
            -
              * Add support for the beta [Gift Card API](https://stripe.com/docs/gift-cards).
         
     | 
| 
      
 179 
     | 
    
         
            +
              # after
         
     | 
| 
      
 180 
     | 
    
         
            +
              Stripe::Subscription::cancel("sub_12345")
         
     | 
| 
      
 181 
     | 
    
         
            +
              ```
         
     | 
| 
       372 
182 
     | 
    
         | 
| 
       373 
     | 
    
         
            -
            ## 7.2.0-beta.1 - 2022-08-23
         
     | 
| 
       374 
     | 
    
         
            -
            * [#1122](https://github.com/stripe/stripe-ruby/pull/1122) API Updates for beta branch
         
     | 
| 
       375 
     | 
    
         
            -
              - Updated stable APIs to the latest version
         
     | 
| 
       376 
     | 
    
         
            -
              - `Stripe-Version` beta headers are not pinned by-default and need to be manually specified, please refer to [beta SDKs README section](https://github.com/stripe/stripe-ruby/blob/master/README.md#beta-sdks)
         
     | 
| 
       377 
183 
     | 
    
         | 
| 
       378 
184 
     | 
    
         
             
            ## 7.1.0 - 2022-08-19
         
     | 
| 
       379 
185 
     | 
    
         
             
            * [#1116](https://github.com/stripe/stripe-ruby/pull/1116) API Updates
         
     | 
| 
         @@ -382,16 +188,6 @@ Breaking changes that arose during code generation of the library that we postpo 
     | 
|
| 
       382 
188 
     | 
    
         
             
            * [#1117](https://github.com/stripe/stripe-ruby/pull/1117) Refresh rubocop config.
         
     | 
| 
       383 
189 
     | 
    
         
             
            * [#1115](https://github.com/stripe/stripe-ruby/pull/1115) Add a support section to the readme
         
     | 
| 
       384 
190 
     | 
    
         | 
| 
       385 
     | 
    
         
            -
            ## 7.1.0-beta.2 - 2022-08-11
         
     | 
| 
       386 
     | 
    
         
            -
            * [#1113](https://github.com/stripe/stripe-ruby/pull/1113) API Updates for beta branch
         
     | 
| 
       387 
     | 
    
         
            -
              - Updated stable APIs to the latest version
         
     | 
| 
       388 
     | 
    
         
            -
              - Add `refund_payment` method to Terminal resource
         
     | 
| 
       389 
     | 
    
         
            -
             
     | 
| 
       390 
     | 
    
         
            -
            ## 7.1.0-beta.1 - 2022-08-03
         
     | 
| 
       391 
     | 
    
         
            -
            * [#1107](https://github.com/stripe/stripe-ruby/pull/1107) API Updates for beta branch
         
     | 
| 
       392 
     | 
    
         
            -
              - Updated stable APIs to the latest version
         
     | 
| 
       393 
     | 
    
         
            -
              - Added the `Order` resource support
         
     | 
| 
       394 
     | 
    
         
            -
             
     | 
| 
       395 
191 
     | 
    
         
             
            ## 7.0.0 - 2022-08-02
         
     | 
| 
       396 
192 
     | 
    
         | 
| 
       397 
193 
     | 
    
         
             
            Breaking changes that arose during code generation of the library that we postponed for the next major version. For changes to the SDK, read more detailed description at https://github.com/stripe/stripe-ruby/wiki/Migration-guide-for-v7. For changes to the Stripe products, read more at https://stripe.com/docs/upgrades#2022-08-01.
         
     | 
| 
         @@ -403,19 +199,21 @@ Breaking changes that arose during code generation of the library that we postpo 
     | 
|
| 
       403 
199 
     | 
    
         
             
            * [#1090](https://github.com/stripe/stripe-ruby/pull/1090) Use auto-generation for `Invoice` methods
         
     | 
| 
       404 
200 
     | 
    
         
             
            * [#1103](https://github.com/stripe/stripe-ruby/pull/1103) Next major release changes
         
     | 
| 
       405 
201 
     | 
    
         | 
| 
       406 
     | 
    
         
            -
             
     | 
| 
       407 
     | 
    
         
            -
            *  
     | 
| 
       408 
     | 
    
         
            -
             
     | 
| 
       409 
     | 
    
         
            -
             
     | 
| 
       410 
     | 
    
         
            -
             
     | 
| 
       411 
     | 
    
         
            -
             
     | 
| 
       412 
     | 
    
         
            -
             
     | 
| 
       413 
     | 
    
         
            -
             
     | 
| 
       414 
     | 
    
         
            -
             
     | 
| 
       415 
     | 
    
         
            -
             
     | 
| 
       416 
     | 
    
         
            -
            *  
     | 
| 
       417 
     | 
    
         
            -
             
     | 
| 
       418 
     | 
    
         
            -
            *  
     | 
| 
      
 202 
     | 
    
         
            +
            ### ⚠️ Changed
         
     | 
| 
      
 203 
     | 
    
         
            +
            * `retrieve_cash_balance` and `update_cash_balance` methods on `Customer` resource no longer requires the second argument to always be `nil`. The methods now now take in `customer_id`, `params`, and `opts` parameters.
         
     | 
| 
      
 204 
     | 
    
         
            +
            * Update default bundle of CA certificates to April 26, 2022.
         
     | 
| 
      
 205 
     | 
    
         
            +
             
     | 
| 
      
 206 
     | 
    
         
            +
            ### Deprecated
         
     | 
| 
      
 207 
     | 
    
         
            +
            * Deprecate `delete` method on `Subscription` resource. Please use `cancel` method instead.
         
     | 
| 
      
 208 
     | 
    
         
            +
             
     | 
| 
      
 209 
     | 
    
         
            +
            ### ⚠️ Removed
         
     | 
| 
      
 210 
     | 
    
         
            +
            * Remove `details` method from `Issuing.Card` resource. The method was not supported.
         
     | 
| 
      
 211 
     | 
    
         
            +
            * Remove `Issuing.CardDetails` resource. Read more at https://stripe.com/docs/issuing/cards/virtual.
         
     | 
| 
      
 212 
     | 
    
         
            +
            * Remove `create` method from `ReportType` resource. The method was not supported.
         
     | 
| 
      
 213 
     | 
    
         
            +
            * Remove `usage_record_summaries` method from `SubscriptionItem` resource. Please use `list_usage_record_summaries` method instead.
         
     | 
| 
      
 214 
     | 
    
         
            +
            * Remove `AlipayAccount`, `BitcoinReceiver`, `BitcoinTransaction`, `Issuing::CardDetails`, `Recipient`, ` RecipientTransfer`, and `ThreeDSecure` resources. The resources were deprecated or no longer in use.
         
     | 
| 
      
 215 
     | 
    
         
            +
            * Remove ability to list `Card` resource for a `Recipient`.
         
     | 
| 
      
 216 
     | 
    
         
            +
            * Remove `cancel` method from `Transfer` resource. The method was deprecated.
         
     | 
| 
       419 
217 
     | 
    
         | 
| 
       420 
218 
     | 
    
         
             
            ## 6.5.0 - 2022-06-29
         
     | 
| 
       421 
219 
     | 
    
         
             
            * [#1084](https://github.com/stripe/stripe-ruby/pull/1084) API Updates
         
     | 
| 
         @@ -445,6 +243,8 @@ Breaking changes that arose during code generation of the library that we postpo 
     | 
|
| 
       445 
243 
     | 
    
         
             
              * Add support for new resources `Treasury.CreditReversal`, `Treasury.DebitReversal`, `Treasury.FinancialAccountFeatures`, `Treasury.FinancialAccount`, `Treasury.FlowDetails`, `Treasury.InboundTransfer`, `Treasury.OutboundPayment`, `Treasury.OutboundTransfer`, `Treasury.ReceivedCredit`, `Treasury.ReceivedDebit`, `Treasury.TransactionEntry`, and `Treasury.Transaction`
         
     | 
| 
       446 
244 
     | 
    
         
             
              * Add support for `retrieve_payment_method` method on resource `Customer`
         
     | 
| 
       447 
245 
     | 
    
         
             
              * Add support for `list_owners` and `list` methods on resource `FinancialConnections.Account`
         
     | 
| 
      
 246 
     | 
    
         
            +
              
         
     | 
| 
      
 247 
     | 
    
         
            +
              
         
     | 
| 
       448 
248 
     | 
    
         | 
| 
       449 
249 
     | 
    
         
             
            ## 6.0.0 - 2022-05-09
         
     | 
| 
       450 
250 
     | 
    
         
             
            * [#1056](https://github.com/stripe/stripe-ruby/pull/1056) API Updates
         
     | 
| 
         @@ -460,6 +260,7 @@ Breaking changes that arose during code generation of the library that we postpo 
     | 
|
| 
       460 
260 
     | 
    
         
             
            ## 5.55.0 - 2022-05-05
         
     | 
| 
       461 
261 
     | 
    
         
             
            * [#1055](https://github.com/stripe/stripe-ruby/pull/1055) API Updates
         
     | 
| 
       462 
262 
     | 
    
         
             
              * Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session`
         
     | 
| 
      
 263 
     | 
    
         
            +
              
         
     | 
| 
       463 
264 
     | 
    
         | 
| 
       464 
265 
     | 
    
         
             
            ## 5.54.0 - 2022-05-03
         
     | 
| 
       465 
266 
     | 
    
         
             
            * [#1053](https://github.com/stripe/stripe-ruby/pull/1053) API Updates
         
     | 
| 
         @@ -1490,4 +1291,3 @@ Identical to 1.56.0 above. I incorrectly cut a patch-level release. 
     | 
|
| 
       1490 
1291 
     | 
    
         
             
            <!--
         
     | 
| 
       1491 
1292 
     | 
    
         
             
            # vim: set tw=0:
         
     | 
| 
       1492 
1293 
     | 
    
         
             
            -->
         
     | 
| 
       1493 
     | 
    
         
            -
             
     | 
    
        data/OPENAPI_VERSION
    CHANGED
    
    | 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
             
     | 
| 
      
 1 
     | 
    
         
            +
            v734
         
     | 
    
        data/README.md
    CHANGED
    
    | 
         @@ -324,17 +324,6 @@ If your beta feature requires a `Stripe-Version` header to be sent, use the `Str 
     | 
|
| 
       324 
324 
     | 
    
         
             
            Stripe.api_version += "; feature_beta=v3"
         
     | 
| 
       325 
325 
     | 
    
         
             
            ```
         
     | 
| 
       326 
326 
     | 
    
         | 
| 
       327 
     | 
    
         
            -
            ### Custom requests
         
     | 
| 
       328 
     | 
    
         
            -
             
     | 
| 
       329 
     | 
    
         
            -
            If you would like to send a request to an undocumented API (for example you are in a private beta), or if you prefer to bypass the method definitions in the library and specify your request details directly, you can use the `raw_request` method on `Stripe`.
         
     | 
| 
       330 
     | 
    
         
            -
             
     | 
| 
       331 
     | 
    
         
            -
            ```ruby
         
     | 
| 
       332 
     | 
    
         
            -
            resp = Stripe.raw_request(:post, "/v1/beta_endpoint", {param: 123}, {stripe_version: "2022-11-15; feature_beta=v3"})
         
     | 
| 
       333 
     | 
    
         
            -
             
     | 
| 
       334 
     | 
    
         
            -
            # (Optional) resp is a StripeResponse. You can use `Stripe.deserialize` to get a StripeObject.
         
     | 
| 
       335 
     | 
    
         
            -
            deserialized_resp = Stripe.deserialize(resp.http_body)
         
     | 
| 
       336 
     | 
    
         
            -
            ```
         
     | 
| 
       337 
     | 
    
         
            -
             
     | 
| 
       338 
327 
     | 
    
         
             
            ## Support
         
     | 
| 
       339 
328 
     | 
    
         | 
| 
       340 
329 
     | 
    
         
             
            New features and bug fixes are released on the latest major version of the Stripe Ruby library. If you are on an older major version, we recommend that you upgrade to the latest in order to use the new features and bug fixes including those for security vulnerabilities. Older major versions of the package will continue to be available for use, but will not be receiving any updates.
         
     | 
    
        data/VERSION
    CHANGED
    
    | 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            10.4.0 
     | 
| 
      
 1 
     | 
    
         
            +
            10.4.0
         
     | 
| 
         @@ -48,14 +48,13 @@ module Stripe 
     | 
|
| 
       48 
48 
     | 
    
         
             
                      api_key = headers.delete(:api_key)
         
     | 
| 
       49 
49 
     | 
    
         
             
                      api_base = headers.delete(:api_base)
         
     | 
| 
       50 
50 
     | 
    
         
             
                      client = headers.delete(:client)
         
     | 
| 
       51 
     | 
    
         
            -
                      api_mode = headers.delete(:api_mode)
         
     | 
| 
       52 
51 
     | 
    
         
             
                      # Assume all remaining opts must be headers
         
     | 
| 
       53 
52 
     | 
    
         | 
| 
       54 
53 
     | 
    
         
             
                      resp, opts[:api_key] = client.send(
         
     | 
| 
       55 
54 
     | 
    
         
             
                        client_request_method_sym,
         
     | 
| 
       56 
55 
     | 
    
         
             
                        method, url,
         
     | 
| 
       57 
56 
     | 
    
         
             
                        api_base: api_base, api_key: api_key,
         
     | 
| 
       58 
     | 
    
         
            -
                        headers: headers, params: params, usage: usage, 
     | 
| 
      
 57 
     | 
    
         
            +
                        headers: headers, params: params, usage: usage,
         
     | 
| 
       59 
58 
     | 
    
         
             
                        &read_body_chunk_block
         
     | 
| 
       60 
59 
     | 
    
         
             
                      )
         
     | 
| 
       61 
60 
     | 
    
         | 
| 
         @@ -0,0 +1,86 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # frozen_string_literal: true
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            module Stripe
         
     | 
| 
      
 4 
     | 
    
         
            +
              module APIOperations
         
     | 
| 
      
 5 
     | 
    
         
            +
                module SingletonSave
         
     | 
| 
      
 6 
     | 
    
         
            +
                  module ClassMethods
         
     | 
| 
      
 7 
     | 
    
         
            +
                    # Updates a singleton API resource
         
     | 
| 
      
 8 
     | 
    
         
            +
                    #
         
     | 
| 
      
 9 
     | 
    
         
            +
                    # Updates the identified resource with the passed in parameters.
         
     | 
| 
      
 10 
     | 
    
         
            +
                    #
         
     | 
| 
      
 11 
     | 
    
         
            +
                    # ==== Attributes
         
     | 
| 
      
 12 
     | 
    
         
            +
                    #
         
     | 
| 
      
 13 
     | 
    
         
            +
                    # * +params+ - A hash of parameters to pass to the API
         
     | 
| 
      
 14 
     | 
    
         
            +
                    # * +opts+ - A Hash of additional options (separate from the params /
         
     | 
| 
      
 15 
     | 
    
         
            +
                    #   object values) to be added to the request. E.g. to allow for an
         
     | 
| 
      
 16 
     | 
    
         
            +
                    #   idempotency_key to be passed in the request headers, or for the
         
     | 
| 
      
 17 
     | 
    
         
            +
                    #   api_key to be overwritten. See
         
     | 
| 
      
 18 
     | 
    
         
            +
                    #   {APIOperations::Request.execute_resource_request}.
         
     | 
| 
      
 19 
     | 
    
         
            +
                    def update(params = {}, opts = {})
         
     | 
| 
      
 20 
     | 
    
         
            +
                      params.each_key do |k|
         
     | 
| 
      
 21 
     | 
    
         
            +
                        raise ArgumentError, "Cannot update protected field: #{k}" if protected_fields.include?(k)
         
     | 
| 
      
 22 
     | 
    
         
            +
                      end
         
     | 
| 
      
 23 
     | 
    
         
            +
             
     | 
| 
      
 24 
     | 
    
         
            +
                      request_stripe_object(
         
     | 
| 
      
 25 
     | 
    
         
            +
                        method: :post,
         
     | 
| 
      
 26 
     | 
    
         
            +
                        path: resource_url,
         
     | 
| 
      
 27 
     | 
    
         
            +
                        params: params,
         
     | 
| 
      
 28 
     | 
    
         
            +
                        opts: opts
         
     | 
| 
      
 29 
     | 
    
         
            +
                      )
         
     | 
| 
      
 30 
     | 
    
         
            +
                    end
         
     | 
| 
      
 31 
     | 
    
         
            +
                  end
         
     | 
| 
      
 32 
     | 
    
         
            +
             
     | 
| 
      
 33 
     | 
    
         
            +
                  # The `save` method is DEPRECATED and will be removed in a future major
         
     | 
| 
      
 34 
     | 
    
         
            +
                  # version of the library. Use the `update` method on the resource instead.
         
     | 
| 
      
 35 
     | 
    
         
            +
                  #
         
     | 
| 
      
 36 
     | 
    
         
            +
                  # Updates a singleton API resource.
         
     | 
| 
      
 37 
     | 
    
         
            +
                  #
         
     | 
| 
      
 38 
     | 
    
         
            +
                  # If the resource doesn't yet have an assigned ID and the resource is one
         
     | 
| 
      
 39 
     | 
    
         
            +
                  # that can be created, then the method attempts to create the resource.
         
     | 
| 
      
 40 
     | 
    
         
            +
                  # The resource is updated otherwise.
         
     | 
| 
      
 41 
     | 
    
         
            +
                  #
         
     | 
| 
      
 42 
     | 
    
         
            +
                  # ==== Attributes
         
     | 
| 
      
 43 
     | 
    
         
            +
                  #
         
     | 
| 
      
 44 
     | 
    
         
            +
                  # * +params+ - Overrides any parameters in the resource's serialized data
         
     | 
| 
      
 45 
     | 
    
         
            +
                  #   and includes them in the create or update. If +:req_url:+ is included
         
     | 
| 
      
 46 
     | 
    
         
            +
                  #   in the list, it overrides the update URL used for the create or
         
     | 
| 
      
 47 
     | 
    
         
            +
                  #   update.
         
     | 
| 
      
 48 
     | 
    
         
            +
                  # * +opts+ - A Hash of additional options (separate from the params /
         
     | 
| 
      
 49 
     | 
    
         
            +
                  #   object values) to be added to the request. E.g. to allow for an
         
     | 
| 
      
 50 
     | 
    
         
            +
                  #   idempotency_key to be passed in the request headers, or for the
         
     | 
| 
      
 51 
     | 
    
         
            +
                  #   api_key to be overwritten. See
         
     | 
| 
      
 52 
     | 
    
         
            +
                  #   {APIOperations::Request.execute_resource_request}.
         
     | 
| 
      
 53 
     | 
    
         
            +
                  def save(params = {}, opts = {})
         
     | 
| 
      
 54 
     | 
    
         
            +
                    # We started unintentionally (sort of) allowing attributes sent to
         
     | 
| 
      
 55 
     | 
    
         
            +
                    # +save+ to override values used during the update. So as not to break
         
     | 
| 
      
 56 
     | 
    
         
            +
                    # the API, this makes that official here.
         
     | 
| 
      
 57 
     | 
    
         
            +
                    update_attributes(params)
         
     | 
| 
      
 58 
     | 
    
         
            +
             
     | 
| 
      
 59 
     | 
    
         
            +
                    # Now remove any parameters that look like object attributes.
         
     | 
| 
      
 60 
     | 
    
         
            +
                    params = params.reject { |k, _| respond_to?(k) }
         
     | 
| 
      
 61 
     | 
    
         
            +
             
     | 
| 
      
 62 
     | 
    
         
            +
                    values = serialize_params(self).merge(params)
         
     | 
| 
      
 63 
     | 
    
         
            +
             
     | 
| 
      
 64 
     | 
    
         
            +
                    resp, opts = execute_resource_request(:post, resource_url, values, opts, ["save"])
         
     | 
| 
      
 65 
     | 
    
         
            +
                    initialize_from(resp.data, opts)
         
     | 
| 
      
 66 
     | 
    
         
            +
                  end
         
     | 
| 
      
 67 
     | 
    
         
            +
                  extend Gem::Deprecate
         
     | 
| 
      
 68 
     | 
    
         
            +
                  deprecate :save, "the `update` class method (for examples " \
         
     | 
| 
      
 69 
     | 
    
         
            +
                                   "see https://github.com/stripe/stripe-ruby" \
         
     | 
| 
      
 70 
     | 
    
         
            +
                                   "/wiki/Migration-guide-for-v8)", 2022, 11
         
     | 
| 
      
 71 
     | 
    
         
            +
             
     | 
| 
      
 72 
     | 
    
         
            +
                  def self.included(base)
         
     | 
| 
      
 73 
     | 
    
         
            +
                    # Set `metadata` as additive so that when it's set directly we remember
         
     | 
| 
      
 74 
     | 
    
         
            +
                    # to clear keys that may have been previously set by sending empty
         
     | 
| 
      
 75 
     | 
    
         
            +
                    # values for them.
         
     | 
| 
      
 76 
     | 
    
         
            +
                    #
         
     | 
| 
      
 77 
     | 
    
         
            +
                    # It's possible that not every object with `Save` has `metadata`, but
         
     | 
| 
      
 78 
     | 
    
         
            +
                    # it's a close enough heuristic, and having this option set when there
         
     | 
| 
      
 79 
     | 
    
         
            +
                    # is no `metadata` field is not harmful.
         
     | 
| 
      
 80 
     | 
    
         
            +
                    base.additive_object_param(:metadata)
         
     | 
| 
      
 81 
     | 
    
         
            +
             
     | 
| 
      
 82 
     | 
    
         
            +
                    base.extend(ClassMethods)
         
     | 
| 
      
 83 
     | 
    
         
            +
                  end
         
     | 
| 
      
 84 
     | 
    
         
            +
                end
         
     | 
| 
      
 85 
     | 
    
         
            +
              end
         
     | 
| 
      
 86 
     | 
    
         
            +
            end
         
     |