'use strict';
import { registerPaymentCustomerAndCreateWorkspaceSubscription } from './payments.js';
import { parseJsonBodyFromRequest } from '../../../../fd-toolbox/lib/utils.js';

var __defProp=Object['defineProperty'],__name=(_0xef3e40,_0x3d5d76)=>__defProp(_0xef3e40,'name',{'value':_0x3d5d76,'configurable':!![]});async function registerPaymentCustomerAndCreateWorkspaceSubscriptionApi(_0x53e0f0){const {name:_0x5b161b,email:_0x3329f1,pricingId:_0x5ac197,paymentMethodId:_0x3a35f2}=await parseJsonBodyFromRequest(_0x53e0f0),_0x308450=await registerPaymentCustomerAndCreateWorkspaceSubscription(_0x5b161b,_0x3329f1,_0x5ac197,_0x3a35f2);return _0x308450;}__name(registerPaymentCustomerAndCreateWorkspaceSubscriptionApi,'registerPaymentCustomerAndCreateWorkspaceSubscriptionApi');

export { registerPaymentCustomerAndCreateWorkspaceSubscriptionApi };
