aboutsummaryrefslogtreecommitdiffstats
path: root/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/billing/AcceptedCountries.java
blob: 082eaac7315797e4b622c49a3829935e660e107a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

package com.yahoo.vespa.hosted.controller.api.integration.billing;

import java.util.List;

/**
 * @author bjorncs
 */
public record AcceptedCountries(List<Country> countries) {

    public AcceptedCountries {
        countries = List.copyOf(countries);
    }

    public record Country(String code, String displayName, boolean taxIdMandatory, List<TaxType> taxTypes) {
        public Country {
            taxTypes = List.copyOf(taxTypes);
        }
    }

    public record TaxType(String id, String description, String pattern, String example) {}
}