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

com.intershop.oms.rest.shared.Pair Maven / Gradle / Ivy

There is a newer version: 7.1.0
Show newest version
/*
 * IOM Order API
 * The IOM Order API allows to create orders, view orders, create change requests and view change requests for an order.  Furthermore, it is possible to search for order states.      ## Changelog   - - -   ### Version 2.4  * Added new end point  `/shops/{shopId}/order-states/modified`.   - - -   ### Version 2.3  * Added optional search filter `emails` to retrieve `order-states`.   - - -   ### Version 2.2  * Added operation `getOrder`.   * Added operations `createChangeRequest`, `getChangeRequest` and `getChangeRequestViewList`.   * Added undocumented constraints to `Price`, `ListPrice`, `UnitPrice`. `net` must not be greater than `gross`, `amountDiscounted` must not be greater than `amount`.  * Added undocumented constraint to `OrderPosition`. Optional `number` must not be negative.  * Added undocumented attributes to `OrderPositionReturned`. Added `OrderPositionReturnedQuantities` and `OrderPositionReturnedUnits`.   - - -   ### Version 2.1  * Extended `Tax`. An unknown `type` can be submitted when adding `rate` and `location`.  * Added undocumented constraint to `Tax`. `type` has a max length of 512 characters.  * Added undocumented constraint. In a list of `Tax` (taxes), each type is allowed once only.  * Exceeded length of attributes in `Promotion`. `id` has a max length of 512 `characters`. `name`, `descriptorId`, `code` and `budgetSourceId` have a max length of 1024 characters.  
 *
 * The version of the OpenAPI document: 2.4
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package com.intershop.oms.rest.shared;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Pair {
    private String name = "";
    private String value = "";

    public Pair (String name, String value) {
        setName(name);
        setValue(value);
    }

    private void setName(String name) {
        if (!isValidString(name)) {
            return;
        }

        this.name = name;
    }

    private void setValue(String value) {
        if (!isValidString(value)) {
            return;
        }

        this.value = value;
    }

    public String getName() {
        return this.name;
    }

    public String getValue() {
        return this.value;
    }

    private boolean isValidString(String arg) {
        if (arg == null) {
            return false;
        }

        return true;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy