Skip to content

Instantly share code, notes, and snippets.

@olkunmustafa
Created March 12, 2019 11:48
Show Gist options
  • Save olkunmustafa/ee875b3db638bbe96b257ea46903eba4 to your computer and use it in GitHub Desktop.
Save olkunmustafa/ee875b3db638bbe96b257ea46903eba4 to your computer and use it in GitHub Desktop.
Json response when requested to me/contract endpoint.
{
"_links": {
"self": {
"href": "http://mapi.zingat.com/me/contract"
}
},
"_embedded": {
"contract": [
{
"id": 13411,
"company": "Günlük Company",
"order": {
"id": 68264,
"totalAmount": {
"amount": 7004,
"currency": "TRY"
},
"discountAmount": {
"amount": 0,
"currency": "TRY"
},
"subTotalAmount": {
"amount": 7004,
"currency": "TRY"
},
"processingFee": {
"amount": 0,
"currency": "TRY"
},
"globalTotalAmount": {
"amount": 7004,
"currency": "TRY"
},
"paymentType": 2,
"status": 4,
"lines": [
{
"id": 65036,
"productId": 34,
"productName": "Günlük Kiralık Altın (10)",
"productPrice": {
"amount": 7004,
"currency": "TRY"
},
"amount": {
"amount": 7004,
"currency": "TRY"
},
"vat": 18,
"quantity": 1,
"term": 12,
"rights": [
{
"key": "Öne Çıkan İlan (Adet)",
"value": "2"
},
{
"key": "Aylık İlan Sayısı",
"value": "10"
},
{
"key": "Danışman Hesabı Ekleme Limiti",
"value": "2"
},
{
"key": "Bireysel Portföy Yönlendirilmesi *",
"value": "-"
},
{
"key": "Emlak Değer Analiz Raporu *",
"value": "-"
},
{
"key": "İlan Başına Fotoğraf Adedi",
"value": "25"
},
{
"key": "Profesyonel Fotoğraf Çekim Hizmeti **",
"value": "-"
},
{
"key": "Foto-Video *",
"value": "-"
},
{
"key": "360° Fotoğraf",
"value": "+"
},
{
"key": "ZingatPro Mobil Portföy Yönetimi *",
"value": "+"
},
{
"key": "Mağazaya Özel Müşteri Temsilcisi",
"value": "+"
},
{
"key": "İlan Geçerlilik Süresi (Gün)",
"value": "30"
},
{
"key": "Afiş (Adet)",
"value": "-"
},
{
"key": "Branda (Adet)",
"value": "-"
}
],
"rightsWithKeys": [
{
"id": 839,
"type": "upload.3dimage",
"title": "Upload 3d image",
"quantity": 10,
"extras": [],
"addon": false,
"gift": false,
"singleTerm": true,
"renewInterval": "12M"
},
{
"id": 838,
"type": "create.agent",
"title": "Agent Create Limit",
"quantity": 2,
"extras": [],
"addon": false,
"gift": false,
"singleTerm": true,
"renewInterval": "12M"
},
{
"id": 837,
"type": "create.image",
"title": "Max Image Upload",
"quantity": 25,
"extras": [],
"addon": false,
"gift": false,
"singleTerm": true,
"renewInterval": "12M"
},
{
"id": 836,
"type": "create.daily.rent.listing",
"title": "Create Daily Rent Listing",
"quantity": 10,
"extras": [],
"addon": false,
"gift": false,
"singleTerm": false,
"renewInterval": "1M"
},
{
"id": 825,
"type": "create.featured.listing",
"title": "Featured Listing",
"quantity": 2,
"extras": {
"scope": "listings",
"position": "L",
"featuredTime": "12M"
},
"addon": false,
"gift": false,
"singleTerm": true,
"renewInterval": "12M"
}
]
}
]
},
"signDate": "2018-04-18T14:59:41+00:00",
"createdBy": {
"id": 280070,
"contact": {
"id": 280576,
"nameSurname": "Günlük Company Admin",
"avatar": {
"id": 27506992,
"path": "profile/280576",
"filename": "gunluk-company-admin-4nhQ.png"
}
}
},
"accountManager": null,
"startDate": "2018-04-18T14:59:41+00:00",
"endDate": "2019-04-18T14:59:41+00:00",
"cancellationDate": null,
"status": 1,
"parent": null,
"_links": {
"self": {
"href": "http://mapi.zingat.com/me/contract"
}
}
}
]
},
"total_items": 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment