From ad5346d54efe3ff91ad0b5d8cc613ae938c819be Mon Sep 17 00:00:00 2001 From: jacekschae <31179812+jacekschae@users.noreply.github.com> Date: Tue, 21 Apr 2026 09:30:34 +0000 Subject: [PATCH] feat: Update to Stripe API 2026-04-22.dahlia --- src/dev/versions.clj | 2 +- src/main/stream/clojure/stripe/api/balance.clj | 2 +- .../clojure/stripe/api/balance_transactions.clj | 2 +- src/main/stream/clojure/stripe/api/tax.clj | 14 +++++++------- src/main/stream/clojure/stripe/api/terminal.clj | 11 +++++++++++ 5 files changed, 21 insertions(+), 10 deletions(-) diff --git a/src/dev/versions.clj b/src/dev/versions.clj index 9098671..1a013dc 100644 --- a/src/dev/versions.clj +++ b/src/dev/versions.clj @@ -1,4 +1,4 @@ (ns versions "Info: This ns is auto-generated from the Stripe OpenAPI spec.") -(def stripe-api-version "2026-01-28.clover") +(def stripe-api-version "2026-04-22.dahlia") diff --git a/src/main/stream/clojure/stripe/api/balance.clj b/src/main/stream/clojure/stripe/api/balance.clj index 653a212..fd8da52 100644 --- a/src/main/stream/clojure/stripe/api/balance.clj +++ b/src/main/stream/clojure/stripe/api/balance.clj @@ -18,7 +18,7 @@ - payout (String): For automatic Stripe payouts only, only returns transactions that were paid out on the specified payout ID. - source (String): Only returns transactions associated with the given object. - starting-after (String): A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list. - - type (String): Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. + - type (String): Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `inbound_transfer`, `inbound_transfer_reversal`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, `transfer_refund`, or `fee_credit_funding`. Example Usage: (list-all-history {:query-params {:limit 10}})" diff --git a/src/main/stream/clojure/stripe/api/balance_transactions.clj b/src/main/stream/clojure/stripe/api/balance_transactions.clj index da5aeec..87db419 100644 --- a/src/main/stream/clojure/stripe/api/balance_transactions.clj +++ b/src/main/stream/clojure/stripe/api/balance_transactions.clj @@ -18,7 +18,7 @@ - payout (String): For automatic Stripe payouts only, only returns transactions that were paid out on the specified payout ID. - source (String): Only returns transactions associated with the given object. - starting-after (String): A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list. - - type (String): Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. + - type (String): Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `inbound_transfer`, `inbound_transfer_reversal`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, `transfer_refund`, or `fee_credit_funding`. Example Usage: (list-all-balance-transactions {:query-params {:limit 10}})" diff --git a/src/main/stream/clojure/stripe/api/tax.clj b/src/main/stream/clojure/stripe/api/tax.clj index 4b8d51c..4cbf9d2 100644 --- a/src/main/stream/clojure/stripe/api/tax.clj +++ b/src/main/stream/clojure/stripe/api/tax.clj @@ -35,7 +35,7 @@ (stripe-request :post {:endpoint "/v1/tax/registrations/{registration-id}" :path-params {:registration-id registration-id} :body body})) (defn create-transactions-create-reversal - "Create a reversal transaction + "Create a reversal Transaction HTTP Method: POST Endpoint: /v1/tax/transactions/create_reversal @@ -46,7 +46,7 @@ (stripe-request :post {:endpoint "/v1/tax/transactions/create_reversal" :body body})) (defn retrieve-transactions-transaction - "Retrieve a transaction + "Retrieve a Transaction HTTP Method: GET Endpoint: /v1/tax/transactions/{transaction-id} @@ -63,7 +63,7 @@ (stripe-request :get {:endpoint "/v1/tax/transactions/{transaction-id}" :path-params {:transaction-id transaction-id} :query-params query-params})) (defn create-transactions-create-from-calculation - "Create a transaction from a calculation + "Create a Transaction from a Calculation HTTP Method: POST Endpoint: /v1/tax/transactions/create_from_calculation @@ -74,7 +74,7 @@ (stripe-request :post {:endpoint "/v1/tax/transactions/create_from_calculation" :body body})) (defn list-all-calculations-calculation-line-items - "Retrieve a calculation's line items + "Retrieve a Calculation's line items HTTP Method: GET Endpoint: /v1/tax/calculations/{calculation-id}/line_items @@ -148,7 +148,7 @@ (stripe-request :post {:endpoint "/v1/tax/registrations" :body body})) (defn create-calculations - "Create a Tax Calculation + "Create a Calculation HTTP Method: POST Endpoint: /v1/tax/calculations @@ -159,7 +159,7 @@ (stripe-request :post {:endpoint "/v1/tax/calculations" :body body})) (defn list-all-transactions-transaction-line-items - "Retrieve a transaction's line items + "Retrieve a Transaction's line items HTTP Method: GET Endpoint: /v1/tax/transactions/{transaction-id}/line_items @@ -179,7 +179,7 @@ (stripe-request :get {:endpoint "/v1/tax/transactions/{transaction-id}/line_items" :path-params {:transaction-id transaction-id} :query-params query-params})) (defn retrieve-calculations-calculation - "Retrieve a Tax Calculation + "Retrieve a Calculation HTTP Method: GET Endpoint: /v1/tax/calculations/{calculation-id} diff --git a/src/main/stream/clojure/stripe/api/terminal.clj b/src/main/stream/clojure/stripe/api/terminal.clj index c1d0abf..2e6d4b5 100644 --- a/src/main/stream/clojure/stripe/api/terminal.clj +++ b/src/main/stream/clojure/stripe/api/terminal.clj @@ -237,6 +237,17 @@ [{:keys [location-id body]}] (stripe-request :post {:endpoint "/v1/terminal/locations/{location-id}" :path-params {:location-id location-id} :body body})) +(defn create-refunds + "Create a refund using a Terminal-supported device. + + HTTP Method: POST + Endpoint: /v1/terminal/refunds + + Example Usage: + (create-refunds {})" + [{:keys [body]}] + (stripe-request :post {:endpoint "/v1/terminal/refunds" :body body})) + (defn post-readers-reader-process-setup-intent "Hand-off a SetupIntent to a Reader