{
	"name": "table/external/ksef/company/company-customer.json",
	"table_name": "company",
	"table_prefix": "co",
	"record_type": ["customer"],
	"local_table": "company",
	"local_record_type": "customer",
	"format": {
		"date": "%Y-%m-%d",
		"datetime": "%Y-%m-%dT%H:%M:%SZ"
	},
	"field": [
		{
			"field_name": "nip",
			"local_field": "json_data.transfer_id",
			"field_type": "string",
			"length": 10,
			"info": "Polish tax identification number (NIP)"
		},
		{
			"field_name": "companyName",
			"local_field": "name",
			"field_type": "string",
			"info": "Full company name"
		},
		{
			"field_name": "firstName",
			"local_field": "json_data.first_name",
			"field_type": "string",
			"info": "First name (for individual persons)"
		},
		{
			"field_name": "lastName",
			"local_field": "json_data.last_name",
			"field_type": "string",
			"info": "Last name (for individual persons)"
		},
		{
			"field_name": "street",
			"local_field": "address",
			"field_type": "string",
			"info": "Street address"
		},
		{
			"field_name": "zipCode",
			"local_field": "post_code",
			"field_type": "string",
			"length": 6,
			"info": "Postal code (XX-XXX format)"
		},
		{
			"field_name": "city",
			"local_field": "post_office",
			"field_type": "string",
			"info": "City name"
		},
		{
			"field_name": "country",
			"local_field": "json_data.country",
			"field_type": "string",
			"info": "Country code (PL for Poland)"
		},
		{
			"field_name": "email",
			"local_field": "email",
			"field_type": "string",
			"info": "Email address"
		},
		{
			"field_name": "phone",
			"local_field": "phone",
			"field_type": "string",
			"info": "Phone number"
		},
		{
			"field_name": "subjectType",
			"local_field": "json_data.subject_type",
			"field_type": "string",
			"info": "Subject type (PERSON, COMPANY, VAT_GROUP)"
		},
		{
			"field_name": "vatGroupId",
			"local_field": "json_data.vat_group_id",
			"field_type": "string",
			"info": "VAT group identifier (if applicable)"
		}
	]
}
