diff --git a/src/dev/versions.clj b/src/dev/versions.clj index 9098671..fa7bdf0 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-09-30.endive") 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/apps.clj b/src/main/stream/clojure/stripe/api/apps.clj index 363936a..b3242e8 100644 --- a/src/main/stream/clojure/stripe/api/apps.clj +++ b/src/main/stream/clojure/stripe/api/apps.clj @@ -3,6 +3,20 @@ (:require [stream.clojure.stripe.request :refer [stripe-request]])) +(defn post-installs-id-uninstall + "Uninstall an app install + + HTTP Method: POST + Endpoint: /v1/apps/installs/{install-id}/uninstall + + Path Parameters: + - install-id (String): The install-id parameter. (required) + + Example Usage: + (post-installs-id-uninstall {:install-id example-install-id})" + [{:keys [install-id body]}] + (stripe-request :post {:endpoint "/v1/apps/installs/{install-id}/uninstall" :path-params {:install-id install-id} :body body})) + (defn list-all-secrets "List secrets @@ -32,6 +46,37 @@ [{:keys [body]}] (stripe-request :post {:endpoint "/v1/apps/secrets" :body body})) +(defn retrieve-installs-id + "Retrieve an app install + + HTTP Method: GET + Endpoint: /v1/apps/installs/{install-id} + + Path Parameters: + - install-id (String): The install-id parameter. (required) + + Query Parameters: + - expand (Array): Specifies which fields in the response should be expanded. + + Example Usage: + (retrieve-installs-id {:install-id example-install-id :query-params {:limit 10}})" + [{:keys [install-id query-params]}] + (stripe-request :get {:endpoint "/v1/apps/installs/{install-id}" :path-params {:install-id install-id} :query-params query-params})) + +(defn update-installs-id + "Update an app install + + HTTP Method: POST + Endpoint: /v1/apps/installs/{install-id} + + Path Parameters: + - install-id (String): The install-id parameter. (required) + + Example Usage: + (update-installs-id {:install-id example-install-id})" + [{:keys [install-id body]}] + (stripe-request :post {:endpoint "/v1/apps/installs/{install-id}" :path-params {:install-id install-id} :body body})) + (defn post-secrets-delete "Delete a Secret @@ -43,6 +88,41 @@ [{:keys [body]}] (stripe-request :post {:endpoint "/v1/apps/secrets/delete" :body body})) +(defn list-all-installs + "List all app installs + + HTTP Method: GET + Endpoint: /v1/apps/installs + + Query Parameters: + - account (String): Only return installs made by this account. Only useful to app developers and embedding platforms, whose lists span the accounts that installed their app. + - app (String): Only return installs for the app specified by this app ID. + - approval-required (Boolean): Only return installs whose installer must authorize pending permissions, content security policy entries, or endpoints. + - channel (String): Only return installs in the distribution channel specified by this channel name. + - created (Unknown): Only return app installs that were created during the given date interval. + - created-by (String): Only return installs created by the embedding platform specified by this account ID. + - 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. + - status (String): Only return installs with the given status. + + Example Usage: + (list-all-installs {:query-params {:limit 10}})" + [{:keys [query-params]}] + (stripe-request :get {:endpoint "/v1/apps/installs" :query-params query-params})) + +(defn create-installs + "Create an app install + + HTTP Method: POST + Endpoint: /v1/apps/installs + + Example Usage: + (create-installs {})" + [{:keys [body]}] + (stripe-request :post {:endpoint "/v1/apps/installs" :body body})) + (defn list-all-secrets-find "Find a Secret diff --git a/src/main/stream/clojure/stripe/api/balance.clj b/src/main/stream/clojure/stripe/api/balance.clj index 653a212..979c32f 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_dispute_provisional_credit`, `issuing_dispute_provisional_credit_reversal`, `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..8dd869c 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_dispute_provisional_credit`, `issuing_dispute_provisional_credit_reversal`, `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/billing.clj b/src/main/stream/clojure/stripe/api/billing.clj index e05f20f..9bbdaf6 100644 --- a/src/main/stream/clojure/stripe/api/billing.clj +++ b/src/main/stream/clojure/stripe/api/billing.clj @@ -248,6 +248,35 @@ [{:keys [query-params]}] (stripe-request :get {:endpoint "/v1/billing/credit_balance_summary" :query-params query-params})) +(defn list-all-feedback-options + "List all feedback options + + HTTP Method: GET + Endpoint: /v1/billing/feedback_options + + Query Parameters: + - 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. + - status (String): Filter results to only include feedback options with the given status. + + Example Usage: + (list-all-feedback-options {:query-params {:limit 10}})" + [{:keys [query-params]}] + (stripe-request :get {:endpoint "/v1/billing/feedback_options" :query-params query-params})) + +(defn create-feedback-options + "Create a feedback option + + HTTP Method: POST + Endpoint: /v1/billing/feedback_options + + Example Usage: + (create-feedback-options {})" + [{:keys [body]}] + (stripe-request :post {:endpoint "/v1/billing/feedback_options" :body body})) + (defn post-meters-id-reactivate "Reactivate a billing meter @@ -262,6 +291,37 @@ [{:keys [meter-id body]}] (stripe-request :post {:endpoint "/v1/billing/meters/{meter-id}/reactivate" :path-params {:meter-id meter-id} :body body})) +(defn retrieve-feedback-options-id + "Retrieve a feedback option + + HTTP Method: GET + Endpoint: /v1/billing/feedback_options/{feedback-option-id} + + Path Parameters: + - feedback-option-id (String): The ID of the feedback option to retrieve. + + Query Parameters: + - expand (Array): Specifies which fields in the response should be expanded. + + Example Usage: + (retrieve-feedback-options-id {:feedback-option-id example-feedback-option-id :query-params {:limit 10}})" + [{:keys [feedback-option-id query-params]}] + (stripe-request :get {:endpoint "/v1/billing/feedback_options/{feedback-option-id}" :path-params {:feedback-option-id feedback-option-id} :query-params query-params})) + +(defn update-feedback-options-id + "Update a feedback option + + HTTP Method: POST + Endpoint: /v1/billing/feedback_options/{feedback-option-id} + + Path Parameters: + - feedback-option-id (String): The ID of the feedback option to update. + + Example Usage: + (update-feedback-options-id {:feedback-option-id example-feedback-option-id})" + [{:keys [feedback-option-id body]}] + (stripe-request :post {:endpoint "/v1/billing/feedback_options/{feedback-option-id}" :path-params {:feedback-option-id feedback-option-id} :body body})) + (defn post-credit-grants-id-void "Void a credit grant @@ -276,6 +336,20 @@ [{:keys [credit-grant-id body]}] (stripe-request :post {:endpoint "/v1/billing/credit_grants/{credit-grant-id}/void" :path-params {:credit-grant-id credit-grant-id} :body body})) +(defn post-feedback-options-id-deactivate + "Deactivate a feedback option + + HTTP Method: POST + Endpoint: /v1/billing/feedback_options/{feedback-option-id}/deactivate + + Path Parameters: + - feedback-option-id (String): The ID of the feedback option to deactivate. + + Example Usage: + (post-feedback-options-id-deactivate {:feedback-option-id example-feedback-option-id})" + [{:keys [feedback-option-id body]}] + (stripe-request :post {:endpoint "/v1/billing/feedback_options/{feedback-option-id}/deactivate" :path-params {:feedback-option-id feedback-option-id} :body body})) + (defn retrieve-credit-grants-id "Retrieve a credit grant 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/product_catalog.clj b/src/main/stream/clojure/stripe/api/product_catalog.clj new file mode 100644 index 0000000..50fc997 --- /dev/null +++ b/src/main/stream/clojure/stripe/api/product_catalog.clj @@ -0,0 +1,66 @@ +(ns stream.clojure.stripe.api.product-catalog + "Info: This ns is auto-generated from the Stripe OpenAPI spec." + (:require [stream.clojure.stripe.request :refer [stripe-request]])) + + +(defn retrieve-product-catalog-trial-offers-id + "Retrieve a trial offer + + HTTP Method: GET + Endpoint: /v1/product_catalog/trial_offers/{trial-offer-id} + + Path Parameters: + - trial-offer-id (String): The trial-offer-id parameter. (required) + + Query Parameters: + - expand (Array): Specifies which fields in the response should be expanded. + + Example Usage: + (retrieve-product-catalog-trial-offers-id {:trial-offer-id example-trial-offer-id :query-params {:limit 10}})" + [{:keys [trial-offer-id query-params]}] + (stripe-request :get {:endpoint "/v1/product_catalog/trial_offers/{trial-offer-id}" :path-params {:trial-offer-id trial-offer-id} :query-params query-params})) + +(defn update-product-catalog-trial-offers-id + "Update a trial offer + + HTTP Method: POST + Endpoint: /v1/product_catalog/trial_offers/{trial-offer-id} + + Path Parameters: + - trial-offer-id (String): The trial-offer-id parameter. (required) + + Example Usage: + (update-product-catalog-trial-offers-id {:trial-offer-id example-trial-offer-id})" + [{:keys [trial-offer-id body]}] + (stripe-request :post {:endpoint "/v1/product_catalog/trial_offers/{trial-offer-id}" :path-params {:trial-offer-id trial-offer-id} :body body})) + +(defn list-all-product-catalog-trial-offers + "List trial offers + + HTTP Method: GET + Endpoint: /v1/product_catalog/trial_offers + + Query Parameters: + - active (Boolean): Only return trial offers that are active (`true`) or archived (`false`). If omitted, both active and archived trial offers are returned. + - created (Unknown): Only return trial offers that were created during the given date interval. + - 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. + - prices (Array): Only return trial offers that reference these prices (during the trial period). + - 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-product-catalog-trial-offers {:query-params {:limit 10}})" + [{:keys [query-params]}] + (stripe-request :get {:endpoint "/v1/product_catalog/trial_offers" :query-params query-params})) + +(defn create-product-catalog-trial-offers + "Create a trial offer + + HTTP Method: POST + Endpoint: /v1/product_catalog/trial_offers + + Example Usage: + (create-product-catalog-trial-offers {})" + [{:keys [body]}] + (stripe-request :post {:endpoint "/v1/product_catalog/trial_offers" :body body})) \ No newline at end of file diff --git a/src/main/stream/clojure/stripe/api/products.clj b/src/main/stream/clojure/stripe/api/products.clj index 7f77577..c8d3a2b 100644 --- a/src/main/stream/clojure/stripe/api/products.clj +++ b/src/main/stream/clojure/stripe/api/products.clj @@ -14,7 +14,7 @@ - created (Unknown): Only return products that were created during the given date interval. - 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. - - ids (Array): Only return products with the given IDs. Cannot be used with [starting_after](https://api.stripe.com#list_products-starting_after) or [ending_before](https://api.stripe.com#list_products-ending_before). + - ids (Array): Only return products with the given IDs. Cannot be used with [starting_after](https://docs.stripe.com/api#list_products-starting_after) or [ending_before](https://docs.stripe.com/api#list_products-ending_before). - limit (Integer): A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. - shippable (Boolean): Only return products that can be shipped (i.e., physical, not digital products). - 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. 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/subscriptions.clj b/src/main/stream/clojure/stripe/api/subscriptions.clj index 75caba6..add8f00 100644 --- a/src/main/stream/clojure/stripe/api/subscriptions.clj +++ b/src/main/stream/clojure/stripe/api/subscriptions.clj @@ -62,6 +62,20 @@ [{:keys [subscription-id body]}] (stripe-request :post {:endpoint "/v1/subscriptions/{subscription-id}/migrate" :path-params {:subscription-id subscription-id} :body body})) +(defn post-subscription-pause + "Pause a subscription + + HTTP Method: POST + Endpoint: /v1/subscriptions/{subscription-id}/pause + + Path Parameters: + - subscription-id (String): The subscription-id parameter. (required) + + Example Usage: + (post-subscription-pause {:subscription-id example-subscription-id})" + [{:keys [subscription-id body]}] + (stripe-request :post {:endpoint "/v1/subscriptions/{subscription-id}/pause" :path-params {:subscription-id subscription-id} :body body})) + (defn delete-subscription-exposed-id-discount "Delete a subscription discount diff --git a/src/main/stream/clojure/stripe/api/tax.clj b/src/main/stream/clojure/stripe/api/tax.clj index 4b8d51c..ea276b7 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} @@ -62,8 +62,37 @@ [{:keys [transaction-id query-params]}] (stripe-request :get {:endpoint "/v1/tax/transactions/{transaction-id}" :path-params {:transaction-id transaction-id} :query-params query-params})) +(defn list-all-locations + "List tax locations + + HTTP Method: GET + Endpoint: /v1/tax/locations + + Query Parameters: + - 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. + - type (String): Type of the tax location. Currently the only option is `performance`. (required) + + Example Usage: + (list-all-locations {:query-params {:limit 10}})" + [{:keys [query-params]}] + (stripe-request :get {:endpoint "/v1/tax/locations" :query-params query-params})) + +(defn create-locations + "Create a tax location + + HTTP Method: POST + Endpoint: /v1/tax/locations + + Example Usage: + (create-locations {})" + [{:keys [body]}] + (stripe-request :post {:endpoint "/v1/tax/locations" :body body})) + (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 +103,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 +177,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 +188,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 +208,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} @@ -208,4 +237,21 @@ Example Usage: (list-all-associations-find {:query-params {:limit 10}})" [{:keys [query-params]}] - (stripe-request :get {:endpoint "/v1/tax/associations/find" :query-params query-params})) \ No newline at end of file + (stripe-request :get {:endpoint "/v1/tax/associations/find" :query-params query-params})) + +(defn retrieve-locations-location + "Retrieve a tax location + + HTTP Method: GET + Endpoint: /v1/tax/locations/{location-id} + + Path Parameters: + - location-id (String): The location-id parameter. (required) + + Query Parameters: + - expand (Array): Specifies which fields in the response should be expanded. + + Example Usage: + (retrieve-locations-location {:location-id example-location-id :query-params {:limit 10}})" + [{:keys [location-id query-params]}] + (stripe-request :get {:endpoint "/v1/tax/locations/{location-id}" :path-params {:location-id location-id} :query-params query-params})) \ No newline at end of file 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/three_d_secure.clj b/src/main/stream/clojure/stripe/api/three_d_secure.clj new file mode 100644 index 0000000..2cd4638 --- /dev/null +++ b/src/main/stream/clojure/stripe/api/three_d_secure.clj @@ -0,0 +1,79 @@ +(ns stream.clojure.stripe.api.three-d-secure + "Info: This ns is auto-generated from the Stripe OpenAPI spec." + (:require [stream.clojure.stripe.request :refer [stripe-request]])) + + +(defn list-all-three-d-secure-authentications + "List all 3D Secure Authentications + + HTTP Method: GET + Endpoint: /v1/three_d_secure/authentications + + Query Parameters: + - created (Unknown): A filter on the list, based on the object `created` field. The value can be a string with an integer Unix timestamp or a dictionary with a number of different query options. + - 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. + - status (String): Only return 3D Secure Authentications for specified status. + + Example Usage: + (list-all-three-d-secure-authentications {:query-params {:limit 10}})" + [{:keys [query-params]}] + (stripe-request :get {:endpoint "/v1/three_d_secure/authentications" :query-params query-params})) + +(defn create-three-d-secure-authentications + "Create a 3DS Authentication + + HTTP Method: POST + Endpoint: /v1/three_d_secure/authentications + + Example Usage: + (create-three-d-secure-authentications {})" + [{:keys [body]}] + (stripe-request :post {:endpoint "/v1/three_d_secure/authentications" :body body})) + +(defn retrieve-three-d-secure-authentications-authentication + "Retrieve a 3DS Authentication + + HTTP Method: GET + Endpoint: /v1/three_d_secure/authentications/{authentication-id} + + Path Parameters: + - authentication-id (String): The authentication-id parameter. (required) + + Query Parameters: + - expand (Array): Specifies which fields in the response should be expanded. + + Example Usage: + (retrieve-three-d-secure-authentications-authentication {:authentication-id example-authentication-id :query-params {:limit 10}})" + [{:keys [authentication-id query-params]}] + (stripe-request :get {:endpoint "/v1/three_d_secure/authentications/{authentication-id}" :path-params {:authentication-id authentication-id} :query-params query-params})) + +(defn post-three-d-secure-authentications-authentication-cancel + "Cancel a 3DS Authentication + + HTTP Method: POST + Endpoint: /v1/three_d_secure/authentications/{authentication-id}/cancel + + Path Parameters: + - authentication-id (String): The authentication-id parameter. (required) + + Example Usage: + (post-three-d-secure-authentications-authentication-cancel {:authentication-id example-authentication-id})" + [{:keys [authentication-id body]}] + (stripe-request :post {:endpoint "/v1/three_d_secure/authentications/{authentication-id}/cancel" :path-params {:authentication-id authentication-id} :body body})) + +(defn post-three-d-secure-authentications-authentication-submit + "Submit a 3DS Authentication + + HTTP Method: POST + Endpoint: /v1/three_d_secure/authentications/{authentication-id}/submit + + Path Parameters: + - authentication-id (String): The authentication-id parameter. (required) + + Example Usage: + (post-three-d-secure-authentications-authentication-submit {:authentication-id example-authentication-id})" + [{:keys [authentication-id body]}] + (stripe-request :post {:endpoint "/v1/three_d_secure/authentications/{authentication-id}/submit" :path-params {:authentication-id authentication-id} :body body})) \ No newline at end of file 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