Portal

<back to all web services

EditSupplierByVeoliaAdmin

Requires Authentication
Required role:VeoliaAdmin
The following routes are available for this service:
PUT/supplier/{supplierid}/byveoliaadmin
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ResponseBase:
    response_status: Optional[ResponseStatus] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ModifyEntityResponse(ResponseBase):
    id: int = 0


class BusinessType(IntEnum):
    COMPANY = 0
    PRIVATE_ENTREPRENEUR = 1
    NON_PROFIT = 2
    LAW_OFFICE = 3


class SupplierStatus(IntEnum):
    REGISTERED = 0
    AWAITING_VEOLIA_CONFIRMATION = 1
    ACTIVE = 2
    REJECTED = 3
    LOCKED = 4
    DELETED = 5


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class EditSupplierByVeoliaAdmin(IPut):
    supplier_id: int = 0
    vat_number: Optional[str] = None
    business_type: Optional[BusinessType] = None
    country_id: int = 0
    name: Optional[str] = None
    short_name: Optional[str] = None
    registration_number: Optional[str] = None
    established_date: datetime.datetime = datetime.datetime(1, 1, 1)
    registration_date: datetime.datetime = datetime.datetime(1, 1, 1)
    duns: Optional[str] = None
    operating_license_number: Optional[str] = None
    is_accounting: bool = False
    is_small_tax_payer: bool = False
    email: Optional[str] = None
    phone_number: Optional[str] = None
    website: Optional[str] = None
    status: Optional[SupplierStatus] = None

Python EditSupplierByVeoliaAdmin DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

PUT /supplier/{supplierid}/byveoliaadmin HTTP/1.1 
Host: szallitoiportal-be.veolia.hu 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"SupplierId":0,"VatNumber":"String","BusinessType":0,"CountryId":0,"Name":"String","ShortName":"String","RegistrationNumber":"String","EstablishedDate":"0001-01-01T00:00:00.0000000","RegistrationDate":"0001-01-01T00:00:00.0000000","Duns":"String","OperatingLicenseNumber":"String","IsAccounting":false,"IsSmallTaxPayer":false,"Email":"String","PhoneNumber":"String","Website":"String","Status":0}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Id":0,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}