/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; import { remap as remap$ } from "../../lib/primitives.js"; export type CustomerPortalSubscriptionsGetSecurity = { customerSession?: string | undefined; memberSession?: string | undefined; }; export type CustomerPortalSubscriptionsGetRequest = { /** * The subscription ID. */ id: string; }; /** @internal */ export type CustomerPortalSubscriptionsGetSecurity$Outbound = { customer_session?: string | undefined; member_session?: string | undefined; }; /** @internal */ export const CustomerPortalSubscriptionsGetSecurity$outboundSchema: z.ZodMiniType< CustomerPortalSubscriptionsGetSecurity$Outbound, CustomerPortalSubscriptionsGetSecurity > = z.pipe( z.object({ customerSession: z.optional(z.string()), memberSession: z.optional(z.string()), }), z.transform((v) => { return remap$(v, { customerSession: "customer_session", memberSession: "member_session", }); }), ); export function customerPortalSubscriptionsGetSecurityToJSON( customerPortalSubscriptionsGetSecurity: CustomerPortalSubscriptionsGetSecurity, ): string { return JSON.stringify( CustomerPortalSubscriptionsGetSecurity$outboundSchema.parse( customerPortalSubscriptionsGetSecurity, ), ); } /** @internal */ export type CustomerPortalSubscriptionsGetRequest$Outbound = { id: string; }; /** @internal */ export const CustomerPortalSubscriptionsGetRequest$outboundSchema: z.ZodMiniType< CustomerPortalSubscriptionsGetRequest$Outbound, CustomerPortalSubscriptionsGetRequest > = z.object({ id: z.string(), }); export function customerPortalSubscriptionsGetRequestToJSON( customerPortalSubscriptionsGetRequest: CustomerPortalSubscriptionsGetRequest, ): string { return JSON.stringify( CustomerPortalSubscriptionsGetRequest$outboundSchema.parse( customerPortalSubscriptionsGetRequest, ), ); }