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

package models

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

import (
	"context"

	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
)

// Billing20201105CreateSetupIntentResponse CreateSetupIntentResponse is the response from creating a Setup Intent to
// collect payment details.
//
// swagger:model billing_20201105CreateSetupIntentResponse
type Billing20201105CreateSetupIntentResponse struct {

	// client_secret is to be used with Stripe.js (e.g. given as an argument to
	// confirmCardSetup) to tokenize the payment details and perform any required
	// checks.
	ClientSecret string `json:"client_secret,omitempty"`
}

// Validate validates this billing 20201105 create setup intent response
func (m *Billing20201105CreateSetupIntentResponse) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this billing 20201105 create setup intent response based on context it is used
func (m *Billing20201105CreateSetupIntentResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

// MarshalBinary interface implementation
func (m *Billing20201105CreateSetupIntentResponse) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}

// UnmarshalBinary interface implementation
func (m *Billing20201105CreateSetupIntentResponse) UnmarshalBinary(b []byte) error {
	var res Billing20201105CreateSetupIntentResponse
	if err := swag.ReadJSON(b, &res); err != nil {
		return err
	}
	*m = res
	return nil
}
