All Downloads are FREE. Search and download functionalities are using the official Maven repository.

models.dsl.TaxFiling.rapid Maven / Gradle / Ivy

There is a newer version: 1.4.2
Show newest version
/* 
  This is a Zen Model template. Customize it to reflect your services 
  and data types.
*/
rapidModel TaxFiling
	resourceAPI MyInterfaceName baseURI "http://my-namespace.com"
		objectResource TaxFilingObject type myDataModel.TaxFiling
			URI taxFiling/{id}
				required templateParam id property filingID

			referenceLink > taxPayer
				targetResource TaxPayerObject
				linkDescriptor TaxPayerObject.TaxPayerObjectLink

			mediaTypes
				application/xml
			method GET getTaxFilingObject
				response TaxFilingObject statusCode 200
				response statusCode 404

		objectResource TaxPayerObject type myDataModel.TaxPayer
			URI taxpayer/{id}
				required templateParam id property taxId

			linkDescriptor TaxPayerObjectLink
				taxId
				lastName

			mediaTypes
				application/xml
			method GET getTaxPayerObject
				response TaxPayerObject statusCode 200
				response statusCode 404

	dataModel myDataModel
		structure TaxFiling
			/** Unique ID for this tax filing */
			filingID : string
			person : reference Person
			taxPayer : reference TaxPayer
			taxYear : gYear
			jurisdition : string
			taxableIncome : decimal // default: exactly 1 occurrence
			paymentMethods : string+ // +
			filedTimestamp : dateTime // *
			dependents : reference Person* // *

		structure Person

		structure TaxPayer
			taxId : string
			firstName : string
			lastName : string




© 2015 - 2024 Weber Informatics LLC | Privacy Policy