| 1 | import type { |
| 2 | GetRadarValueListItemError, |
| 3 | GetRadarValueListItemRequest, |
| 4 | RadarValueListItem as StripeRadarValueListItem, |
| 5 | } from "@distilled.cloud/stripe/stripe"; |
| 6 | import type * as Effect from "effect/Effect"; |
| 7 | import * as Binding from "../Binding.ts"; |
| 8 | import type { RuntimeContext } from "../RuntimeContext.ts"; |
| 9 | import type { RadarValueListItem } from "./RadarValueListItem.ts"; |
| 10 | |
| 11 | export interface RetrieveRadarValueListItemRequest extends Omit< |
| 12 | GetRadarValueListItemRequest, |
| 13 | "item" |
| 14 | > {} |
| 15 | |
| 16 | /** |
| 17 | * Retrieve a bound Stripe Radar Value List Item over HTTP. |
| 18 | * |
| 19 | * ### Reading a Value List Item |
| 20 | * **Example:** Bind and retrieve |
| 21 | * ```typescript |
| 22 | * const retrieve = yield* Stripe.RetrieveRadarValueListItem(item); |
| 23 | * const live = yield* retrieve(); |
| 24 | * ``` |
| 25 | * |
| 26 | * @binding |
| 27 | * @product Radar |
| 28 | */ |
| 29 | export interface RetrieveRadarValueListItem extends Binding.Service< |
| 30 | RetrieveRadarValueListItem, |
| 31 | "Stripe.RetrieveRadarValueListItem", |
| 32 | ( |
| 33 | item: RadarValueListItem, |
| 34 | ) => Effect.Effect< |
| 35 | ( |
| 36 | request?: RetrieveRadarValueListItemRequest, |
| 37 | ) => Effect.Effect< |
| 38 | StripeRadarValueListItem, |
| 39 | GetRadarValueListItemError, |
| 40 | RuntimeContext |
| 41 | > |
| 42 | > |
| 43 | > {} |
| 44 | |
| 45 | export const RetrieveRadarValueListItem = |
| 46 | Binding.Service<RetrieveRadarValueListItem>( |
| 47 | "Stripe.RetrieveRadarValueListItem", |
| 48 | ); |