import type * as paymentcryptographydata from "@distilled.cloud/aws/payment-cryptography-data"; import type * as Effect from "effect/Effect"; import * as Binding from "../../Binding.ts"; import type { Key } from "./Key.ts"; export interface TranslatePinDataRequest extends Omit { } /** * Runtime binding for `payment-cryptography:TranslatePinData` — translates * an encrypted PIN block from one PIN encryption {@link Key} (and ISO 9564 * format) to another without the PIN ever leaving the service. This is the * core acquirer operation for forwarding PIN blocks between networks. * Provide `TranslatePinDataHttp` on the Function to satisfy this service. * ### PIN Data * **Example:** Translate a PIN block between two PEKs * ```typescript * // init * const translatePin = yield* PaymentCryptography.TranslatePinData(pek, partnerPek); * * // runtime * const translated = yield* translatePin({ * IncomingTranslationAttributes: { * IsoFormat0: { PrimaryAccountNumber: pan }, * }, * OutgoingTranslationAttributes: { * IsoFormat0: { PrimaryAccountNumber: pan }, * }, * EncryptedPinBlock: encryptedPinBlock, * }); * ``` * * @binding */ export interface TranslatePinData extends Binding.Service(incomingKey: In, outgoingKey: Out) => Effect.Effect<(request: TranslatePinDataRequest) => Effect.Effect>> { } export declare const TranslatePinData: TranslatePinData; //# sourceMappingURL=TranslatePinData.d.ts.map