// Path: src/main/java/uk/co/visalia/brightpearl/apiclient/request/ServiceWriteRequest.java
// public class ServiceWriteRequest<T> extends AbstractServiceRequest<T> {
// 
//     private final Object entity;
// 
//     ServiceWriteRequest(String ruid, ServiceName service, Method method, String path, Type responseType, Map<String, String> params, Object entity) {
//         super(ruid, service, method, path, responseType, params);
//         this.entity = entity;
//     }
// 
//     /**
//      * The entity to be serialised as JSON and sent as the request body.
//      * @return the request entity object.
//      */
//     public Object getEntity() {
//         return entity;
//     }
// 
// }


import uk.co.visalia.brightpearl.apiclient.request.ServiceWriteRequest;
import java.util.Collections;
import java.util.List;
/*
 * Copyright 2014 David Morrissey
 *
 * 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
 *
 *     http://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 uk.co.visalia.brightpearl.apiclient.multimessage;



/**
 * Wraps a set of write requests together with a {@link OnFailOption} and a {@link ProcessingMode} to define a multimessage
 * request for execution with the Brightpearl API. Instances are immutable and may be constructed using {@link MultiRequestBuilder}.
 * For further information please see the link below.
 * @see <a href="http://www.brightpearl.com/developer/latest/concept/multi-message.html">http://www.brightpearl.com/developer/latest/concept/multi-message.html</a>
 */
public final class MultiRequest {

    private final OnFailOption onFailOption;

    private final ProcessingMode processingMode;

// Path: src/main/java/uk/co/visalia/brightpearl/apiclient/request/ServiceWriteRequest.java
// public class ServiceWriteRequest<T> extends AbstractServiceRequest<T> {
// 
//     private final Object entity;
// 
//     ServiceWriteRequest(String ruid, ServiceName service, Method method, String path, Type responseType, Map<String, String> params, Object entity) {
//         super(ruid, service, method, path, responseType, params);
//         this.entity = entity;
//     }
// 
//     /**
//      * The entity to be serialised as JSON and sent as the request body.
//      * @return the request entity object.
//      */
//     public Object getEntity() {
//         return entity;
//     }
// 
// }


// Path: src/main/java/uk/co/visalia/brightpearl/apiclient/multimessage/MultiRequest.java
import uk.co.visalia.brightpearl.apiclient.request.ServiceWriteRequest;
import java.util.Collections;
import java.util.List;

/*
 * Copyright 2014 David Morrissey
 *
 * 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
 *
 *     http://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 uk.co.visalia.brightpearl.apiclient.multimessage;



/**
 * Wraps a set of write requests together with a {@link OnFailOption} and a {@link ProcessingMode} to define a multimessage
 * request for execution with the Brightpearl API. Instances are immutable and may be constructed using {@link MultiRequestBuilder}.
 * For further information please see the link below.
 * @see <a href="http://www.brightpearl.com/developer/latest/concept/multi-message.html">http://www.brightpearl.com/developer/latest/concept/multi-message.html</a>
 */
public final class MultiRequest {

    private final OnFailOption onFailOption;

    private final ProcessingMode processingMode;

    private final List<ServiceWriteRequest> requests;