{
	"name": "form/nc/nc-bank/convert/payment-definition-fi.json",
	"record_separator": "\r\n",
	"remove_double_space": true,
	"char_map": [
		{ "from": "{", "to": "ä" },
		{ "from": "[", "to": "Ä" },
		{ "from": "|", "to": "ö" },
		{ "from": "\\", "to": "Ö" },
		{ "from": "]", "to": "Å" }
	],
	"definition": {
		"record_type": {
			"field": [{ "field": "type", "field_length": 1 }]
		},
		"0": {
			"field": [
				{
					"field": "record_type",
					"field_length": 1,
					"data_type": "number",
					"must_equal": 0
				},
				{
					"field": "date",
					"field_length": 10,
					"data_type": "timestamp",
					"format": "YYMMDDhhmm"
				},
				{ "field": "bank", "field_length": 2, "data_type": "alpha" },
				{ "field": "company", "field_length": 9, "data_type": "alpha" },
				{
					"field": "currency_code",
					"field_length": 1,
					"data_type": "alpha",
					"optional": true
				},
				{
					"field": "account_owner",
					"field_length": 9,
					"data_type": "alpha",
					"optional": true
				},
				{
					"field": "spare",
					"field_length": 58,
					"data_type": "alpha",
					"optional": true
				}
			]
		},
		"3": {
			"content_to": "0",
			"info": "viitemaksu",
			"field": [
				{
					"field": "record_type",
					"field_length": 1,
					"data_type": "number",
					"must_equal": 3
				},
				{ "field": "account", "field_length": 14, "data_type": "alpha" },
				{
					"field": "entry_date",
					"field_length": 6,
					"data_type": "date",
					"format": "YYMMDD"
				},
				{
					"field": "payment_date",
					"field_length": 6,
					"data_type": "date",
					"format": "YYMMDD"
				},
				{ "field": "archive_id", "field_length": 16, "data_type": "alpha" },
				{ "field": "reference", "field_length": 20, "data_type": "alpha" },
				{ "field": "customer", "field_length": 12, "data_type": "alpha" },
				{
					"field": "currency_code",
					"field_length": 1,
					"data_type": "alpha",
					"optional": true
				},
				{
					"field": "customer_source",
					"field_length": 1,
					"data_type": "alpha",
					"optional": true,
					"must_equal": {
						"A": "asiakkaalta",
						"J": "pankin rekisteristä tilinumeron perusteella",
						"K": "pankin konttorissa näppäilty"
					}
				},
				{
					"field": "amount",
					"field_length": 10,
					"data_type": "number",
					"decimals": 2
				},
				{
					"field": "correction_id",
					"field_length": 1,
					"data_type": "number",
					"optional": true,
					"must_equal": {
						"0": "normaali tapahtuma",
						"1": "oikaisutapahtuma"
					}
				},
				{
					"field": "create_type",
					"field_length": 1,
					"optional": true,
					"must_equal": {
						"A": "asiakkaalta konekielisesti tai itsepalveluna",
						"J": "muodostettu pankin järjestelmässä",
						"K": "pankin toimihenkilön tallentama"
					}
				},
				{
					"field": "feedback_code",
					"field_length": 1,
					"data_type": "alpha",
					"optional": true
				}
			]
		},
		"5": {
			"content_to": "0",
			"info": "suoraveloitus",
			"field": [
				{
					"field": "record_type",
					"field_length": 1,
					"data_type": "number",
					"must_equal": 5
				},
				{ "field": "account", "field_length": 14, "data_type": "alpha" },
				{
					"field": "entry_date",
					"field_length": 6,
					"data_type": "date",
					"format": "YYMMDD"
				},
				{
					"field": "payment_date",
					"field_length": 6,
					"data_type": "date",
					"format": "YYMMDD"
				},
				{ "field": "archive_id", "field_length": 16, "data_type": "alpha" },
				{ "field": "reference", "field_length": 20, "data_type": "alpha" },
				{ "field": "customer", "field_length": 12, "data_type": "alpha" },
				{
					"field": "currency_code",
					"field_length": 1,
					"data_type": "alpha",
					"optional": true
				},
				{
					"field": "customer_source",
					"field_length": 1,
					"data_type": "alpha",
					"optional": true,
					"must_equal": {
						"A": "asiakkaalta",
						"J": "pankin rekisteristä tilinumeron perusteella",
						"K": "pankin konttorissa näppäilty"
					}
				},
				{
					"field": "amount",
					"field_length": 10,
					"data_type": "number",
					"decimals": 2
				},
				{
					"field": "correction_id",
					"field_length": 1,
					"data_type": "number",
					"optional": true,
					"must_equal": {
						"0": "normaali tapahtuma",
						"1": "oikaisutapahtuma"
					}
				},
				{
					"field": "create_type",
					"field_length": 1,
					"optional": true,
					"must_equal": {
						"A": "asiakkaalta konekielisesti tai itsepalveluna",
						"J": "muodostettu pankin järjestelmässä",
						"K": "pankin toimihenkilön tallentama"
					}
				},
				{
					"field": "feedback_code",
					"field_length": 1,
					"data_type": "alpha",
					"optional": true
				}
			]
		},
		"7": {
			"content_to": "0",
			"field": [
				{
					"field": "record_type",
					"field_length": 1,
					"data_type": "number",
					"must_equal": 7
				},
				{ "field": "account", "field_length": 14, "data_type": "alpha" },
				{
					"field": "entry_date",
					"field_length": 6,
					"data_type": "date",
					"format": "YYMMDD"
				},
				{
					"field": "payment_date",
					"field_length": 6,
					"data_type": "date",
					"format": "YYMMDD"
				},
				{ "field": "archive_id", "field_length": 16, "data_type": "alpha" },
				{ "field": "reference", "field_length": 20, "data_type": "alpha" },
				{ "field": "customer", "field_length": 12, "data_type": "alpha" },
				{
					"field": "currency_code",
					"field_length": 1,
					"data_type": "alpha",
					"optional": true
				},
				{
					"field": "customer_source",
					"field_length": 1,
					"data_type": "alpha",
					"optional": true,
					"must_equal": {
						"A": "asiakkaalta",
						"J": "pankin rekisteristä tilinumeron perusteella",
						"K": "pankin konttorissa näppäilty"
					}
				},
				{
					"field": "amount",
					"field_length": 10,
					"data_type": "number",
					"decimals": 2
				},
				{
					"field": "correction_id",
					"field_length": 1,
					"data_type": "number",
					"optional": true,
					"must_equal": {
						"0": "normaali tapahtuma",
						"1": "oikaisutapahtuma"
					}
				},
				{
					"field": "transfer_type",
					"field_length": 1,
					"optional": true,
					"must_equal": {
						"A": "asiakkaalta konekielisesti tai itsepalveluna",
						"J": "muodostettu pankin järjestelmässä",
						"K": "pankin toimihenkilön tallentama"
					}
				},
				{
					"field": "feedback_code",
					"field_length": 1,
					"data_type": "alpha",
					"optional": true
				}
			]
		},
		"9": {
			"content_to": "0",
			"field": [
				{
					"field": "record_type",
					"field_length": 1,
					"data_type": "number",
					"must_equal": 9
				},
				{ "field": "payment_count", "field_length": 6, "data_type": "number" },
				{
					"field": "payment_amount",
					"field_length": 11,
					"data_type": "number",
					"decimals": 2
				},
				{
					"field": "correction_count",
					"field_length": 6,
					"data_type": "number",
					"optional": true
				},
				{
					"field": "correction_amount",
					"field_length": 11,
					"data_type": "number",
					"decimals": 2,
					"optional": true
				},
				{
					"field": "spare_1",
					"field_length": 6,
					"data_type": "number",
					"optional": true
				},
				{
					"field": "spare_2",
					"field_length": 11,
					"data_type": "number",
					"optional": true
				},
				{
					"field": "spare_3",
					"field_length": 38,
					"data_type": "alpha",
					"optional": true
				}
			]
		}
	}
}
