mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Add custom_field in orders API (#2715)
This commit is contained in:
@@ -172,6 +172,7 @@ ORDER_CREATE_PAYLOAD = {
|
||||
"city": "Sample City",
|
||||
"country": "NZ",
|
||||
"internal_reference": "",
|
||||
"custom_field": None,
|
||||
"vat_id": ""
|
||||
},
|
||||
"positions": [
|
||||
@@ -321,7 +322,8 @@ def test_order_create_simulate(token_client, organizer, event, item, quota, ques
|
||||
'state': '',
|
||||
'vat_id': '',
|
||||
'vat_id_validated': False,
|
||||
'internal_reference': ''
|
||||
'internal_reference': '',
|
||||
'custom_field': None
|
||||
},
|
||||
'positions': [
|
||||
{
|
||||
|
||||
@@ -114,7 +114,7 @@ def order(event, item, taxrule, question):
|
||||
o.fees.create(fee_type=OrderFee.FEE_TYPE_PAYMENT, value=Decimal('0.25'), tax_rate=Decimal('19.00'),
|
||||
tax_value=Decimal('0.05'), tax_rule=taxrule, canceled=True)
|
||||
InvoiceAddress.objects.create(order=o, company="Sample company", country=Country('NZ'),
|
||||
vat_id="DE123", vat_id_validated=True)
|
||||
vat_id="DE123", vat_id_validated=True, custom_field="Custom info")
|
||||
op = OrderPosition.objects.create(
|
||||
order=o,
|
||||
item=item,
|
||||
@@ -264,6 +264,7 @@ TEST_ORDER_RES = {
|
||||
"country": "NZ",
|
||||
"state": "",
|
||||
"internal_reference": "",
|
||||
"custom_field": "Custom info",
|
||||
"vat_id": "DE123",
|
||||
"vat_id_validated": True
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user