|
66 | 66 | "description": "Billing Contact" |
67 | 67 | }, |
68 | 68 | "billing_address": { |
69 | | - "$ref": "#/definitions/BaseRelationRef", |
| 69 | + "$ref": "#/definitions/AddressAttribute", |
70 | 70 | "description": "Billing Address" |
71 | 71 | }, |
72 | 72 | "payment_method": { |
73 | 73 | "type": "array", |
74 | 74 | "items": { |
75 | 75 | "type": "object", |
| 76 | + "description": "Payment method details", |
76 | 77 | "properties": { |
77 | | - "_tags": { |
78 | | - "type": "array", |
79 | | - "items": { |
80 | | - "type": "string" |
81 | | - } |
| 78 | + "type": { |
| 79 | + "type": "string", |
| 80 | + "enum": [ |
| 81 | + "payment_sepa", |
| 82 | + "payment_invoice", |
| 83 | + "payment_cash" |
| 84 | + ], |
| 85 | + "example": "payment_sepa" |
82 | 86 | }, |
83 | | - "value": { |
84 | | - "$ref": "#/definitions/BaseRelationRef" |
| 87 | + "data": { |
| 88 | + "type": "object", |
| 89 | + "properties": { |
| 90 | + "bank_name": { |
| 91 | + "type": "string", |
| 92 | + "example": "Deutsche Bank" |
| 93 | + }, |
| 94 | + "iban": { |
| 95 | + "type": "string", |
| 96 | + "example": "DE89370400440532013000" |
| 97 | + }, |
| 98 | + "bic_number": { |
| 99 | + "type": "string", |
| 100 | + "example": "DEUTDEFF" |
| 101 | + }, |
| 102 | + "fullname": { |
| 103 | + "type": "string", |
| 104 | + "example": "John Doe" |
| 105 | + } |
| 106 | + } |
85 | 107 | } |
86 | | - }, |
87 | | - "required": [ |
88 | | - "value" |
89 | | - ] |
| 108 | + } |
90 | 109 | }, |
91 | 110 | "description": "Payment Method" |
92 | 111 | }, |
93 | 112 | "contracts": { |
94 | 113 | "$ref": "#/definitions/BaseRelation", |
95 | 114 | "description": "Contracts" |
96 | 115 | }, |
| 116 | + "external_id": { |
| 117 | + "type": "string", |
| 118 | + "description": "External ID" |
| 119 | + }, |
97 | 120 | "workflows": { |
98 | 121 | "$ref": "#/definitions/WorkflowOverview" |
99 | 122 | }, |
|
178 | 201 | } |
179 | 202 | }, |
180 | 203 | "definitions": { |
| 204 | + "AddressAttribute": { |
| 205 | + "type": "object", |
| 206 | + "description": "Address attribute", |
| 207 | + "additionalProperties": true, |
| 208 | + "properties": { |
| 209 | + "_tags": { |
| 210 | + "type": "array", |
| 211 | + "items": { |
| 212 | + "type": "string" |
| 213 | + }, |
| 214 | + "example": [ |
| 215 | + "billing" |
| 216 | + ] |
| 217 | + }, |
| 218 | + "street": { |
| 219 | + "type": "string", |
| 220 | + "description": "The first line of the address. Typically the street address or PO Box number.", |
| 221 | + "nullable": true, |
| 222 | + "example": "Hauptstraße" |
| 223 | + }, |
| 224 | + "street_number": { |
| 225 | + "type": "string", |
| 226 | + "description": "The second line of the address. Typically the number of the apartment, suite, or unit.", |
| 227 | + "nullable": true, |
| 228 | + "example": "123" |
| 229 | + }, |
| 230 | + "postal_code": { |
| 231 | + "type": "string", |
| 232 | + "description": "The postal code for the address.", |
| 233 | + "nullable": true, |
| 234 | + "example": "50668" |
| 235 | + }, |
| 236 | + "city": { |
| 237 | + "type": "string", |
| 238 | + "description": "The name of the city, district, village, or town.", |
| 239 | + "nullable": true, |
| 240 | + "example": "Cologne" |
| 241 | + }, |
| 242 | + "country": { |
| 243 | + "type": "string", |
| 244 | + "description": "The two-letter code for the country of the address.", |
| 245 | + "nullable": true, |
| 246 | + "example": "DE" |
| 247 | + }, |
| 248 | + "additional_info": { |
| 249 | + "type": "string", |
| 250 | + "description": "An additional description for the address", |
| 251 | + "nullable": true |
| 252 | + }, |
| 253 | + "company_name": { |
| 254 | + "type": "string", |
| 255 | + "description": "the company name, usually used as extra delivery instructions", |
| 256 | + "nullable": true |
| 257 | + }, |
| 258 | + "first_name": { |
| 259 | + "type": "string", |
| 260 | + "description": "the first name of the recipient, usually used as extra delivery instructions", |
| 261 | + "nullable": true |
| 262 | + }, |
| 263 | + "last_name": { |
| 264 | + "type": "string", |
| 265 | + "description": "the last name of the recipient, usually used as extra delivery instructions", |
| 266 | + "nullable": true |
| 267 | + }, |
| 268 | + "salutation": { |
| 269 | + "type": "string", |
| 270 | + "description": "the salutation of the recipient, usually used as extra delivery instructions", |
| 271 | + "nullable": true |
| 272 | + }, |
| 273 | + "title": { |
| 274 | + "type": "string", |
| 275 | + "description": "the title of the recipient, usually used as extra delivery instructions", |
| 276 | + "nullable": true |
| 277 | + }, |
| 278 | + "coordinates": { |
| 279 | + "type": "string", |
| 280 | + "description": "Geographical coordinates (latitude, longitude)", |
| 281 | + "nullable": true, |
| 282 | + "example": "50.948484, 6.943147" |
| 283 | + }, |
| 284 | + "plot_of_land": { |
| 285 | + "type": "string", |
| 286 | + "description": "Plot of land information", |
| 287 | + "nullable": true |
| 288 | + }, |
| 289 | + "plot_area": { |
| 290 | + "type": "string", |
| 291 | + "description": "Area of the plot", |
| 292 | + "nullable": true |
| 293 | + }, |
| 294 | + "start_date": { |
| 295 | + "type": "string", |
| 296 | + "description": "Start date for the address", |
| 297 | + "format": "date", |
| 298 | + "nullable": true |
| 299 | + }, |
| 300 | + "end_date": { |
| 301 | + "type": "string", |
| 302 | + "description": "End date for the address", |
| 303 | + "format": "date", |
| 304 | + "nullable": true |
| 305 | + } |
| 306 | + } |
| 307 | + }, |
181 | 308 | "BaseUUID": { |
182 | 309 | "type": "string", |
183 | 310 | "format": "uuid", |
|
214 | 341 | } |
215 | 342 | } |
216 | 343 | }, |
217 | | - "BaseRelationRef": { |
218 | | - "type": "object", |
219 | | - "nullable": true, |
220 | | - "description": "Reference to a specific property of another entity", |
221 | | - "properties": { |
222 | | - "$relation_ref": { |
223 | | - "type": "array", |
224 | | - "items": { |
225 | | - "type": "object", |
226 | | - "properties": { |
227 | | - "entity_id": { |
228 | | - "$ref": "#/definitions/BaseUUID" |
229 | | - }, |
230 | | - "path": { |
231 | | - "type": "string", |
232 | | - "example": "address", |
233 | | - "description": "The property of the entity (pointed by entity_id) to be used as the reference" |
234 | | - }, |
235 | | - "_tags": { |
236 | | - "$ref": "#/definitions/BaseTags" |
237 | | - }, |
238 | | - "_id": { |
239 | | - "type": "string", |
240 | | - "example": "xHcOoJCa07eysJ1GaQeSb" |
241 | | - } |
242 | | - } |
243 | | - } |
244 | | - } |
245 | | - } |
246 | | - }, |
247 | 344 | "WorkflowStatus": { |
248 | 345 | "type": "string", |
249 | 346 | "enum": [ |
|
0 commit comments