From 2b7ede7622a0cdd6f35d672ec42823092310dab9 Mon Sep 17 00:00:00 2001 From: jacekschae <31179812+jacekschae@users.noreply.github.com> Date: Thu, 30 Jul 2026 10:57:43 +0000 Subject: [PATCH] feat: Update to Stripe API 2026-07-29.dahlia --- src/dev/versions.clj | 2 +- .../stream/clojure/stripe/api/accounts.clj | 32 +++++++++++++------ .../stream/clojure/stripe/api/balance.clj | 2 +- .../stripe/api/balance_transactions.clj | 2 +- .../stream/clojure/stripe/api/charges.clj | 10 +++--- .../stream/clojure/stripe/api/customers.clj | 18 +++++------ .../clojure/stripe/api/external_accounts.clj | 6 ++-- .../clojure/stripe/api/payment_intents.clj | 2 +- .../api/payment_method_configurations.clj | 1 + .../clojure/stripe/api/payment_methods.clj | 6 ++-- .../clojure/stripe/api/payment_records.clj | 19 +++++++++++ .../stream/clojure/stripe/api/refunds.clj | 2 +- .../stream/clojure/stripe/api/sources.clj | 6 ++-- .../stripe/api/subscription_schedules.clj | 2 +- src/main/stream/clojure/stripe/api/tax.clj | 14 ++++---- .../stream/clojure/stripe/api/terminal.clj | 11 +++++++ src/main/stream/clojure/stripe/api/tokens.clj | 2 +- 17 files changed, 91 insertions(+), 46 deletions(-) diff --git a/src/dev/versions.clj b/src/dev/versions.clj index 9098671..bc93921 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-07-29.dahlia") diff --git a/src/main/stream/clojure/stripe/api/accounts.clj b/src/main/stream/clojure/stripe/api/accounts.clj index 1ce560c..669c6de 100644 --- a/src/main/stream/clojure/stripe/api/accounts.clj +++ b/src/main/stream/clojure/stripe/api/accounts.clj @@ -21,14 +21,14 @@ [{:keys [query-params]}] (stripe-request :get {:endpoint "/v1/accounts" :query-params query-params})) -(defn post - "No description available. +(defn create + "Create an account HTTP Method: POST Endpoint: /v1/accounts Example Usage: - (post {})" + (create {})" [{:keys [body]}] (stripe-request :post {:endpoint "/v1/accounts" :body body})) @@ -127,8 +127,8 @@ [{:keys [account-id bank-account-id]}] (stripe-request :delete {:endpoint "/v1/accounts/{account-id}/bank_accounts/{bank-account-id}" :path-params {:account-id account-id :bank-account-id bank-account-id}})) -(defn post-account-bank-id - "No description available. +(defn update-account-bank-id + "Update a bank account HTTP Method: POST Endpoint: /v1/accounts/{account-id}/bank_accounts/{bank-account-id} @@ -138,7 +138,7 @@ - bank-account-id (String): The bank-account-id parameter. (required) Example Usage: - (post-account-bank-id {:account-id example-account-id :bank-account-id example-bank-account-id})" + (update-account-bank-id {:account-id example-account-id :bank-account-id example-bank-account-id})" [{:keys [account-id bank-account-id body]}] (stripe-request :post {:endpoint "/v1/accounts/{account-id}/bank_accounts/{bank-account-id}" :path-params {:account-id account-id :bank-account-id bank-account-id} :body body})) @@ -225,6 +225,20 @@ [{:keys [account-id body]}] (stripe-request :post {:endpoint "/v1/accounts/{account-id}/people" :path-params {:account-id account-id} :body body})) +(defn post-account-unreject + "Unreject an account + + HTTP Method: POST + Endpoint: /v1/accounts/{account-id}/unreject + + Path Parameters: + - account-id (String): The account-id parameter. (required) + + Example Usage: + (post-account-unreject {:account-id example-account-id})" + [{:keys [account-id body]}] + (stripe-request :post {:endpoint "/v1/accounts/{account-id}/unreject" :path-params {:account-id account-id} :body body})) + (defn retrieve-account "Retrieve account @@ -437,8 +451,8 @@ [{:keys [account-id external-account-id]}] (stripe-request :delete {:endpoint "/v1/accounts/{account-id}/external_accounts/{external-account-id}" :path-params {:account-id account-id :external-account-id external-account-id}})) -(defn post-account-external-id - "No description available. +(defn update-account-external-id + "Update a bank account HTTP Method: POST Endpoint: /v1/accounts/{account-id}/external_accounts/{external-account-id} @@ -448,7 +462,7 @@ - external-account-id (String): The external-account-id parameter. (required) Example Usage: - (post-account-external-id {:account-id example-account-id :external-account-id example-external-account-id})" + (update-account-external-id {:account-id example-account-id :external-account-id example-external-account-id})" [{:keys [account-id external-account-id body]}] (stripe-request :post {:endpoint "/v1/accounts/{account-id}/external_accounts/{external-account-id}" :path-params {:account-id account-id :external-account-id external-account-id} :body body})) diff --git a/src/main/stream/clojure/stripe/api/balance.clj b/src/main/stream/clojure/stripe/api/balance.clj index 653a212..6a49845 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: `tax_fund`, `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..6c0a6ae 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: `tax_fund`, `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/charges.clj b/src/main/stream/clojure/stripe/api/charges.clj index 4278bed..5b262bb 100644 --- a/src/main/stream/clojure/stripe/api/charges.clj +++ b/src/main/stream/clojure/stripe/api/charges.clj @@ -24,14 +24,14 @@ [{:keys [query-params]}] (stripe-request :get {:endpoint "/v1/charges" :query-params query-params})) -(defn post - "No description available. +(defn create + "Create a charge HTTP Method: POST Endpoint: /v1/charges Example Usage: - (post {})" + (create {})" [{:keys [body]}] (stripe-request :post {:endpoint "/v1/charges" :body body})) @@ -56,7 +56,7 @@ (stripe-request :get {:endpoint "/v1/charges/{charge-id}/refunds" :path-params {:charge-id charge-id} :query-params query-params})) (defn create-charge-refunds - "Create customer balance refund + "Create a refund HTTP Method: POST Endpoint: /v1/charges/{charge-id}/refunds @@ -84,7 +84,7 @@ (stripe-request :post {:endpoint "/v1/charges/{charge-id}/dispute/close" :path-params {:charge-id charge-id} :body body})) (defn post-charge-capture - "Capture a payment + "Capture a charge HTTP Method: POST Endpoint: /v1/charges/{charge-id}/capture diff --git a/src/main/stream/clojure/stripe/api/customers.clj b/src/main/stream/clojure/stripe/api/customers.clj index 0dccbe3..204b7a9 100644 --- a/src/main/stream/clojure/stripe/api/customers.clj +++ b/src/main/stream/clojure/stripe/api/customers.clj @@ -363,8 +363,8 @@ [{:keys [customer-id bank-account-id]}] (stripe-request :delete {:endpoint "/v1/customers/{customer-id}/bank_accounts/{bank-account-id}" :path-params {:customer-id customer-id :bank-account-id bank-account-id}})) -(defn post-customer-bank-accounts-id - "No description available. +(defn update-customer-bank-accounts-id + "Update a card HTTP Method: POST Endpoint: /v1/customers/{customer-id}/bank_accounts/{bank-account-id} @@ -374,7 +374,7 @@ - bank-account-id (String): The bank-account-id parameter. (required) Example Usage: - (post-customer-bank-accounts-id {:customer-id example-customer-id :bank-account-id example-bank-account-id})" + (update-customer-bank-accounts-id {:customer-id example-customer-id :bank-account-id example-bank-account-id})" [{:keys [customer-id bank-account-id body]}] (stripe-request :post {:endpoint "/v1/customers/{customer-id}/bank_accounts/{bank-account-id}" :path-params {:customer-id customer-id :bank-account-id bank-account-id} :body body})) @@ -474,8 +474,8 @@ [{:keys [customer-id source-id]}] (stripe-request :delete {:endpoint "/v1/customers/{customer-id}/sources/{source-id}" :path-params {:customer-id customer-id :source-id source-id}})) -(defn post-customer-sources-id - "No description available. +(defn update-customer-sources-id + "Update a card HTTP Method: POST Endpoint: /v1/customers/{customer-id}/sources/{source-id} @@ -485,7 +485,7 @@ - source-id (String): The source-id parameter. (required) Example Usage: - (post-customer-sources-id {:customer-id example-customer-id :source-id example-source-id})" + (update-customer-sources-id {:customer-id example-customer-id :source-id example-source-id})" [{:keys [customer-id source-id body]}] (stripe-request :post {:endpoint "/v1/customers/{customer-id}/sources/{source-id}" :path-params {:customer-id customer-id :source-id source-id} :body body})) @@ -664,8 +664,8 @@ [{:keys [customer-id card-id]}] (stripe-request :delete {:endpoint "/v1/customers/{customer-id}/cards/{card-id}" :path-params {:customer-id customer-id :card-id card-id}})) -(defn post-customer-cards-id - "No description available. +(defn update-customer-cards-id + "Update a card HTTP Method: POST Endpoint: /v1/customers/{customer-id}/cards/{card-id} @@ -675,7 +675,7 @@ - card-id (String): The card-id parameter. (required) Example Usage: - (post-customer-cards-id {:customer-id example-customer-id :card-id example-card-id})" + (update-customer-cards-id {:customer-id example-customer-id :card-id example-card-id})" [{:keys [customer-id card-id body]}] (stripe-request :post {:endpoint "/v1/customers/{customer-id}/cards/{card-id}" :path-params {:customer-id customer-id :card-id card-id} :body body})) diff --git a/src/main/stream/clojure/stripe/api/external_accounts.clj b/src/main/stream/clojure/stripe/api/external_accounts.clj index 5585983..56a6710 100644 --- a/src/main/stream/clojure/stripe/api/external_accounts.clj +++ b/src/main/stream/clojure/stripe/api/external_accounts.clj @@ -3,8 +3,8 @@ (:require [stream.clojure.stripe.request :refer [stripe-request]])) -(defn post-external-accounts-id - "No description available. +(defn update-external-accounts-id + "Update a bank account HTTP Method: POST Endpoint: /v1/external_accounts/{external-account-id} @@ -13,6 +13,6 @@ - external-account-id (String): The external-account-id parameter. (required) Example Usage: - (post-external-accounts-id {:external-account-id example-external-account-id})" + (update-external-accounts-id {:external-account-id example-external-account-id})" [{:keys [external-account-id body]}] (stripe-request :post {:endpoint "/v1/external_accounts/{external-account-id}" :path-params {:external-account-id external-account-id} :body body})) \ No newline at end of file diff --git a/src/main/stream/clojure/stripe/api/payment_intents.clj b/src/main/stream/clojure/stripe/api/payment_intents.clj index b4ab0c7..b88d58a 100644 --- a/src/main/stream/clojure/stripe/api/payment_intents.clj +++ b/src/main/stream/clojure/stripe/api/payment_intents.clj @@ -121,7 +121,7 @@ - expand (Array): Specifies which fields in the response should be expanded. - limit (Integer): A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. - page (String): A cursor for pagination across multiple pages of results. Don't include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results. - - query (String): The search query string. See [search query language](https://docs.stripe.com/search#search-query-language) and the list of supported [query fields for payment intents](https://docs.stripe.com/search#query-fields-for-payment-intents). (required) + - query (String): The search query string. See [search query language](https://docs.stripe.com/search#search-query-language) and the list of supported [query fields for payment intents](https://docs.stripe.com/search#query-fields-for-paymentintents). (required) Example Usage: (list-all-payment-intents-search {:query-params {:limit 10}})" diff --git a/src/main/stream/clojure/stripe/api/payment_method_configurations.clj b/src/main/stream/clojure/stripe/api/payment_method_configurations.clj index f4790be..00d373e 100644 --- a/src/main/stream/clojure/stripe/api/payment_method_configurations.clj +++ b/src/main/stream/clojure/stripe/api/payment_method_configurations.clj @@ -10,6 +10,7 @@ Endpoint: /v1/payment_method_configurations Query Parameters: + - active (Boolean): Whether the configuration is active. - application (Unknown): The Connect application to filter by. - ending-before (String): A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. - expand (Array): Specifies which fields in the response should be expanded. diff --git a/src/main/stream/clojure/stripe/api/payment_methods.clj b/src/main/stream/clojure/stripe/api/payment_methods.clj index 4a823ce..fcc7942 100644 --- a/src/main/stream/clojure/stripe/api/payment_methods.clj +++ b/src/main/stream/clojure/stripe/api/payment_methods.clj @@ -38,14 +38,14 @@ [{:keys [query-params]}] (stripe-request :get {:endpoint "/v1/payment_methods" :query-params query-params})) -(defn post-payment-methods - "Shares a PaymentMethod +(defn create-payment-methods + "Create a PaymentMethod HTTP Method: POST Endpoint: /v1/payment_methods Example Usage: - (post-payment-methods {})" + (create-payment-methods {})" [{:keys [body]}] (stripe-request :post {:endpoint "/v1/payment_methods" :body body})) diff --git a/src/main/stream/clojure/stripe/api/payment_records.clj b/src/main/stream/clojure/stripe/api/payment_records.clj index d77e1f7..01e09c0 100644 --- a/src/main/stream/clojure/stripe/api/payment_records.clj +++ b/src/main/stream/clojure/stripe/api/payment_records.clj @@ -14,6 +14,25 @@ [{:keys [body]}] (stripe-request :post {:endpoint "/v1/payment_records/report_payment" :body body})) +(defn list-all-payment-records + "List Payment Records + + HTTP Method: GET + Endpoint: /v1/payment_records + + Query Parameters: + - created-after (Integer): Only return Payment Records that were created after this unix timestamp. + - created-before (Integer): Only return Payment Records that were created before this unix timestamp. + - ending-before (String): A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. + - expand (Array): Specifies which fields in the response should be expanded. + - limit (Integer): A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. + - 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. + + Example Usage: + (list-all-payment-records {:query-params {:limit 10}})" + [{:keys [query-params]}] + (stripe-request :get {:endpoint "/v1/payment_records" :query-params query-params})) + (defn post-payment-records-id-report-payment-attempt-canceled "Report payment attempt canceled diff --git a/src/main/stream/clojure/stripe/api/refunds.clj b/src/main/stream/clojure/stripe/api/refunds.clj index 71ba0f3..a4956d2 100644 --- a/src/main/stream/clojure/stripe/api/refunds.clj +++ b/src/main/stream/clojure/stripe/api/refunds.clj @@ -69,7 +69,7 @@ (stripe-request :get {:endpoint "/v1/refunds" :query-params query-params})) (defn create - "Create customer balance refund + "Create a refund HTTP Method: POST Endpoint: /v1/refunds diff --git a/src/main/stream/clojure/stripe/api/sources.clj b/src/main/stream/clojure/stripe/api/sources.clj index 4cc9085..ef1dddf 100644 --- a/src/main/stream/clojure/stripe/api/sources.clj +++ b/src/main/stream/clojure/stripe/api/sources.clj @@ -105,13 +105,13 @@ [{:keys [source-id query-params]}] (stripe-request :get {:endpoint "/v1/sources/{source-id}/source_transactions" :path-params {:source-id source-id} :query-params query-params})) -(defn post - "Shares a source +(defn create + "Create a source HTTP Method: POST Endpoint: /v1/sources Example Usage: - (post {})" + (create {})" [{:keys [body]}] (stripe-request :post {:endpoint "/v1/sources" :body body})) \ No newline at end of file diff --git a/src/main/stream/clojure/stripe/api/subscription_schedules.clj b/src/main/stream/clojure/stripe/api/subscription_schedules.clj index b84e421..930d435 100644 --- a/src/main/stream/clojure/stripe/api/subscription_schedules.clj +++ b/src/main/stream/clojure/stripe/api/subscription_schedules.clj @@ -13,7 +13,7 @@ - canceled-at (Unknown): Only return subscription schedules that were created canceled the given date interval. - completed-at (Unknown): Only return subscription schedules that completed during the given date interval. - created (Unknown): Only return subscription schedules that were created during the given date interval. - - customer (String): Only return subscription schedules for the given customer. + - customer (String): Only return subscription schedules for the given customer. The response will not include subscription schedules for customers with a test clock attached if this parameter is not set. - customer-account (String): Only return subscription schedules for the given account. - ending-before (String): A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. - expand (Array): Specifies which fields in the response should be expanded. 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 diff --git a/src/main/stream/clojure/stripe/api/tokens.clj b/src/main/stream/clojure/stripe/api/tokens.clj index 46d270e..531e7ce 100644 --- a/src/main/stream/clojure/stripe/api/tokens.clj +++ b/src/main/stream/clojure/stripe/api/tokens.clj @@ -21,7 +21,7 @@ (stripe-request :get {:endpoint "/v1/tokens/{token-id}" :path-params {:token-id token-id} :query-params query-params})) (defn create - "Create a CVC update token + "Create a bank account token HTTP Method: POST Endpoint: /v1/tokens