private static VOOrganizationPaymentConfiguration createCustomerConfiguration( String orgId, String paymentId) { VOOrganizationPaymentConfiguration conf = new VOOrganizationPaymentConfiguration(); conf.setEnabledPaymentTypes(Collections.singleton(createPaymentType(paymentId))); VOOrganization org = new VOOrganization(); org.setOrganizationId(orgId); conf.setOrganization(org); return conf; }
/** * Get a new organization object. * * @return the new organization object. */ public VOOrganization getOrganization() { if (organization == null) { organization = new VOOrganization(); FacesContext fc = FacesContext.getCurrentInstance(); Locale locale = fc.getViewRoot().getLocale(); organization.setLocale(locale.toString()); } return organization; }