Models

Models

Mail

class jmb.webposte.models.Mail(*args, **kwargs)[source]

Classe degli invii fatti o pianificati

class jmb.webposte.models.History(*args, **kwargs)[source]

History(id, date_create, date_last_modify, mail_id, delivery_status, delivery_update)

class jmb.webposte.models.Mail(*args, **kwargs)[source]

Classe degli invii fatti o pianificati

confirm(xol_client=None)[source]

Confirm this order, parse result and update records

get_xol_client()[source]

Return a client according to self.type

submit(xol_client=None)[source]

Send this invoice according to what has already been saved

Parameters:xol_client – a xol client, a new one is created if missing
update_num_raccomandata(response)[source]

return a dict mapping IdRicevuta (recipient service id) to NumeroRaccomandata

update_recipients_delivery_status(xol_client=None)[source]

update delivery status for rol recipients

Parameters:xol_client – a xol client, a new one is created if missing
update_recipients_ids(xol, xol_submit)[source]

update the dict mapping recipient ids

Parameters:
  • xol – rol/lol client
  • xol_submit – the used xol_submit
update_status(xol_client=None)[source]

update status querying the web service

Parameters:xol_client – a xol client, a new one is created if missing
classmethod validate(xol_client=None, ids_list=None, q=None)[source]

Validate address if accepted by poste-on-line

Sarebbe più efficente ma poste-on-line non da informazione su quale destinatario non valida...

class jmb.webposte.models.RecipientAddress(*args, **kwargs)[source]

RecipientAddress(id, date_create, date_last_modify, status, ordering, creator_id, last_modifier_id, address_type, name, number, crossed, scale, floor, zip_code, locality, province, country_id, post_office, first_name, last_name, company_name, mail_id, guid, delivery_status, recipient_id, receipt_id, ref_number)

update_status(xol_client=None)[source]

update status querying the web service

In case of multi-recipient it’s better to update from Mail object

class jmb.webposte.models.ReturnAddress(*args, **kwargs)[source]

ReturnAddress(id, date_create, date_last_modify, status, ordering, creator_id, last_modifier_id, address_type, name, number, crossed, scale, floor, zip_code, locality, province, country_id, post_office, first_name, last_name, company_name, mail_id)

class jmb.webposte.models.SenderAddress(*args, **kwargs)[source]

SenderAddress(id, date_create, date_last_modify, status, ordering, creator_id, last_modifier_id, address_type, name, number, crossed, scale, floor, zip_code, locality, province, country_id, post_office, first_name, last_name, company_name, mail_id)

class jmb.webposte.models.XolAddress(*args, **kwargs)[source]

Classe astratta che deriva da jmb.address.models.Address ed aggiunge un nominativo

abstract()[source]

Return an abstract of the person/address

as_dict()[source]

Return a dict suitable for rol/lol from Address model

validate(xol_client=None)[source]

Validate address if accepted by poste-on-line

Parameters:xol_client – a xol client, a new one is created if missing
jmb.webposte.models.choices2map(my_tuple)[source]

Return a dict mapping the values in choices

jmb.webposte.models.get_xol_client(type_='lol')[source]

Return a suitable xol client for type_

Previous topic

Commands

This Page