// Code generated by go-swagger; DO NOT EDIT.

// All Code Copyright(c) 2018-2020 by Taxnexus, Inc.
// All rights reserved worldwide.
// Proprietary product; unlicensed use is not allowed

package transactions

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

import (
	"context"
	"net/http"
	"time"

	"github.com/go-openapi/errors"
	"github.com/go-openapi/runtime"
	cr "github.com/go-openapi/runtime/client"
	"github.com/go-openapi/strfmt"
)

// NewGetTransactionByIDParams creates a new GetTransactionByIDParams object
// with the default values initialized.
func NewGetTransactionByIDParams() *GetTransactionByIDParams {
	var ()
	return &GetTransactionByIDParams{

		timeout: cr.DefaultTimeout,
	}
}

// NewGetTransactionByIDParamsWithTimeout creates a new GetTransactionByIDParams object
// with the default values initialized, and the ability to set a timeout on a request
func NewGetTransactionByIDParamsWithTimeout(timeout time.Duration) *GetTransactionByIDParams {
	var ()
	return &GetTransactionByIDParams{

		timeout: timeout,
	}
}

// NewGetTransactionByIDParamsWithContext creates a new GetTransactionByIDParams object
// with the default values initialized, and the ability to set a context for a request
func NewGetTransactionByIDParamsWithContext(ctx context.Context) *GetTransactionByIDParams {
	var ()
	return &GetTransactionByIDParams{

		Context: ctx,
	}
}

// NewGetTransactionByIDParamsWithHTTPClient creates a new GetTransactionByIDParams object
// with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetTransactionByIDParamsWithHTTPClient(client *http.Client) *GetTransactionByIDParams {
	var ()
	return &GetTransactionByIDParams{
		HTTPClient: client,
	}
}

/*GetTransactionByIDParams contains all the parameters to send to the API endpoint
for the get transaction by Id operation typically these are written to a http.Request
*/
type GetTransactionByIDParams struct {

	/*ItemNumber
	  The Blaze Transaction Number

	*/
	ItemNumber string

	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}

// WithTimeout adds the timeout to the get transaction by Id params
func (o *GetTransactionByIDParams) WithTimeout(timeout time.Duration) *GetTransactionByIDParams {
	o.SetTimeout(timeout)
	return o
}

// SetTimeout adds the timeout to the get transaction by Id params
func (o *GetTransactionByIDParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}

// WithContext adds the context to the get transaction by Id params
func (o *GetTransactionByIDParams) WithContext(ctx context.Context) *GetTransactionByIDParams {
	o.SetContext(ctx)
	return o
}

// SetContext adds the context to the get transaction by Id params
func (o *GetTransactionByIDParams) SetContext(ctx context.Context) {
	o.Context = ctx
}

// WithHTTPClient adds the HTTPClient to the get transaction by Id params
func (o *GetTransactionByIDParams) WithHTTPClient(client *http.Client) *GetTransactionByIDParams {
	o.SetHTTPClient(client)
	return o
}

// SetHTTPClient adds the HTTPClient to the get transaction by Id params
func (o *GetTransactionByIDParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}

// WithItemNumber adds the itemNumber to the get transaction by Id params
func (o *GetTransactionByIDParams) WithItemNumber(itemNumber string) *GetTransactionByIDParams {
	o.SetItemNumber(itemNumber)
	return o
}

// SetItemNumber adds the itemNumber to the get transaction by Id params
func (o *GetTransactionByIDParams) SetItemNumber(itemNumber string) {
	o.ItemNumber = itemNumber
}

// WriteToRequest writes these params to a swagger request
func (o *GetTransactionByIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {

	if err := r.SetTimeout(o.timeout); err != nil {
		return err
	}
	var res []error

	// path param itemNumber
	if err := r.SetPathParam("itemNumber", o.ItemNumber); err != nil {
		return err
	}

	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
