/*
Legal Entity Management API

API version: 3
*/

// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.

package legalentity

import (
	"encoding/json"

	"github.com/adyen/adyen-go-api-library/v21/src/common"
)

// checks if the CalculatePciStatusRequest type satisfies the MappedNullable interface at compile time
var _ common.MappedNullable = &CalculatePciStatusRequest{}

// CalculatePciStatusRequest struct for CalculatePciStatusRequest
type CalculatePciStatusRequest struct {
	// An array of additional sales channels to generate PCI questionnaires. Include the relevant sales channels if you need your user to sign PCI questionnaires. Not required if you [create stores](https://docs.adyen.com/platforms) and [add payment methods](https://docs.adyen.com/adyen-for-platforms-model) before you generate the questionnaires.  Possible values: *  **eCommerce** *  **pos** *  **ecomMoto** *  **posMoto**
	AdditionalSalesChannels []string `json:"additionalSalesChannels,omitempty"`
}

// NewCalculatePciStatusRequest instantiates a new CalculatePciStatusRequest object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewCalculatePciStatusRequest() *CalculatePciStatusRequest {
	this := CalculatePciStatusRequest{}
	return &this
}

// NewCalculatePciStatusRequestWithDefaults instantiates a new CalculatePciStatusRequest object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewCalculatePciStatusRequestWithDefaults() *CalculatePciStatusRequest {
	this := CalculatePciStatusRequest{}
	return &this
}

// GetAdditionalSalesChannels returns the AdditionalSalesChannels field value if set, zero value otherwise.
func (o *CalculatePciStatusRequest) GetAdditionalSalesChannels() []string {
	if o == nil || common.IsNil(o.AdditionalSalesChannels) {
		var ret []string
		return ret
	}
	return o.AdditionalSalesChannels
}

// GetAdditionalSalesChannelsOk returns a tuple with the AdditionalSalesChannels field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CalculatePciStatusRequest) GetAdditionalSalesChannelsOk() ([]string, bool) {
	if o == nil || common.IsNil(o.AdditionalSalesChannels) {
		return nil, false
	}
	return o.AdditionalSalesChannels, true
}

// HasAdditionalSalesChannels returns a boolean if a field has been set.
func (o *CalculatePciStatusRequest) HasAdditionalSalesChannels() bool {
	if o != nil && !common.IsNil(o.AdditionalSalesChannels) {
		return true
	}

	return false
}

// SetAdditionalSalesChannels gets a reference to the given []string and assigns it to the AdditionalSalesChannels field.
func (o *CalculatePciStatusRequest) SetAdditionalSalesChannels(v []string) {
	o.AdditionalSalesChannels = v
}

func (o CalculatePciStatusRequest) MarshalJSON() ([]byte, error) {
	toSerialize, err := o.ToMap()
	if err != nil {
		return []byte{}, err
	}
	return json.Marshal(toSerialize)
}

func (o CalculatePciStatusRequest) ToMap() (map[string]interface{}, error) {
	toSerialize := map[string]interface{}{}
	if !common.IsNil(o.AdditionalSalesChannels) {
		toSerialize["additionalSalesChannels"] = o.AdditionalSalesChannels
	}
	return toSerialize, nil
}

type NullableCalculatePciStatusRequest struct {
	value *CalculatePciStatusRequest
	isSet bool
}

func (v NullableCalculatePciStatusRequest) Get() *CalculatePciStatusRequest {
	return v.value
}

func (v *NullableCalculatePciStatusRequest) Set(val *CalculatePciStatusRequest) {
	v.value = val
	v.isSet = true
}

func (v NullableCalculatePciStatusRequest) IsSet() bool {
	return v.isSet
}

func (v *NullableCalculatePciStatusRequest) Unset() {
	v.value = nil
	v.isSet = false
}

func NewNullableCalculatePciStatusRequest(val *CalculatePciStatusRequest) *NullableCalculatePciStatusRequest {
	return &NullableCalculatePciStatusRequest{value: val, isSet: true}
}

func (v NullableCalculatePciStatusRequest) MarshalJSON() ([]byte, error) {
	return json.Marshal(v.value)
}

func (v *NullableCalculatePciStatusRequest) UnmarshalJSON(src []byte) error {
	v.isSet = true
	return json.Unmarshal(src, &v.value)
}
