Name | Type | Description | Notes |
---|---|---|---|
Id | string | ||
Type | PaymentMethodType | ||
Card | Pointer to PaymentMethodCard | [optional] | |
CreatedAt | time.Time |
func NewPaymentMethod(id string, type_ PaymentMethodType, createdAt time.Time, ) *PaymentMethod
NewPaymentMethod instantiates a new PaymentMethod 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 NewPaymentMethodWithDefaults() *PaymentMethod
NewPaymentMethodWithDefaults instantiates a new PaymentMethod 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 (o *PaymentMethod) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *PaymentMethod) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PaymentMethod) SetId(v string)
SetId sets Id field to given value.
func (o *PaymentMethod) GetType() PaymentMethodType
GetType returns the Type field if non-nil, zero value otherwise.
func (o *PaymentMethod) GetTypeOk() (*PaymentMethodType, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PaymentMethod) SetType(v PaymentMethodType)
SetType sets Type field to given value.
func (o *PaymentMethod) GetCard() PaymentMethodCard
GetCard returns the Card field if non-nil, zero value otherwise.
func (o *PaymentMethod) GetCardOk() (*PaymentMethodCard, bool)
GetCardOk returns a tuple with the Card field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PaymentMethod) SetCard(v PaymentMethodCard)
SetCard sets Card field to given value.
func (o *PaymentMethod) HasCard() bool
HasCard returns a boolean if a field has been set.
func (o *PaymentMethod) GetCreatedAt() time.Time
GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.
func (o *PaymentMethod) GetCreatedAtOk() (*time.Time, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PaymentMethod) SetCreatedAt(v time.Time)
SetCreatedAt sets CreatedAt field to given value.