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

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

/* 
  This is a Zen Model template. Customize it to reflect your services 
  and data types.
*/
rapidModel TaxFiling_multipleParams
	resourceAPI TaxFiling_multipleParams baseURI "http://my-namespace.com"
		objectResource TaxFilingObject type TaxFiling
			URI /taxFiling/{taxyear}/segment3/{jurisdiction}/{id}

				required templateParam taxyear property taxYear
				required templateParam jurisdiction property jurisdiction
				required templateParam id property filingID
				matrixParam mParam1 property firstName
				matrixParam mParam2 property lastName

			referenceLink > taxPayer
				targetResource TaxPayerCollection
				linkDescriptor TaxPayerCollection.TaxPayerCollectionLink

			method GET getTaxFilingObject
				response TaxFilingObject statusCode 200
				response statusCode 404


		collectionResource TaxPayerCollection type TaxPayer
			URI taxpayer / {id}
				required templateParam id type int

			collectionParam cParam1 property firstName
			collectionParam cParam2 property lastName

			linkDescriptor TaxPayerCollectionLink
				taxId
				lastName

			method GET getTaxPayerCollection
				response TaxPayerCollection statusCode 200
				response statusCode 404

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

		structure Person

		structure TaxPayer
			taxId : string
			firstName : string
			lastName : string




© 2015 - 2025 Weber Informatics LLC | Privacy Policy