All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alextherapeutics.diga.model.DigaCodeValidationResponse Maven / Gradle / Ivy

/*
 * Copyright 2021-2021 Alex Therapeutics AB and individual contributors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 *
 */

package com.alextherapeutics.diga.model;

import java.util.Date;
import lombok.Data;
import lombok.experimental.SuperBuilder;

/**
 * Collects the information received from an API response for a code validation request. Mutable
 * object interacted with by several interfaces: Contains information from both the HTTP response as
 * well as the XML response, and the original request.
 */
@SuperBuilder
@Data
public class DigaCodeValidationResponse extends AbstractDigaApiResponse {
  /** The code which was validated. This field is only set if validation was successful. */
  private String validatedDigaCode;

  /**
   * The full DiGAVEid which was validated. It consists of your DiGAID + 3 numbers. It is unclear
   * what the last 3 digits mean so far, but you need to put this DiGAVEid in the invoice you send
   * to get paid for this code validation, see {@link DigaInvoice#getDigavEid()}.
   */
  private String validatedDigaveid;

  // TODO figure out what this translation means ("tag der leistungserbringung" from "antwort")
  private Date dayOfServiceProvision;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy