| 1 | import { GetPaymentMethodConfiguration } from "@distilled.cloud/stripe/stripe"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { RetrievePaymentMethodConfiguration } from "./RetrievePaymentMethodConfiguration.ts"; |
| 4 | import { makeHttpStripeIdBinding } from "./StripeHttp.ts"; |
| 5 | |
| 6 | /** |
| 7 | * HTTP implementation of {@link RetrievePaymentMethodConfiguration}. |
| 8 | * |
| 9 | * @layer |
| 10 | * @product Payment Methods |
| 11 | * @provides Stripe.RetrievePaymentMethodConfiguration |
| 12 | */ |
| 13 | export const RetrievePaymentMethodConfigurationHttp = Layer.effect( |
| 14 | RetrievePaymentMethodConfiguration, |
| 15 | makeHttpStripeIdBinding({ |
| 16 | tag: "Stripe.RetrievePaymentMethodConfiguration", |
| 17 | operation: GetPaymentMethodConfiguration, |
| 18 | idField: "configuration", |
| 19 | permissions: ["payment_method_configurations_read"], |
| 20 | }), |
| 21 | ); |