| 1 | import * as paymentcryptographydata from "@distilled.cloud/aws/payment-cryptography-data"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makePaymentCryptographyKeyHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { GenerateAuthRequestCryptogram } from "./GenerateAuthRequestCryptogram.ts"; |
| 5 | |
| 6 | /** |
| 7 | * HTTP implementation of {@link GenerateAuthRequestCryptogram} — grants the |
| 8 | * host Function `payment-cryptography:GenerateAuthRequestCryptogram` on the |
| 9 | * issuer master key and calls the Payment Cryptography Data API at runtime. |
| 10 | */ |
| 11 | export const GenerateAuthRequestCryptogramHttp = Layer.effect( |
| 12 | GenerateAuthRequestCryptogram, |
| 13 | makePaymentCryptographyKeyHttpBinding({ |
| 14 | tag: "AWS.PaymentCryptography.GenerateAuthRequestCryptogram", |
| 15 | operation: paymentcryptographydata.generateAuthRequestCryptogram, |
| 16 | actions: ["payment-cryptography:GenerateAuthRequestCryptogram"], |
| 17 | }), |
| 18 | ); |