NAME

Peace::Model::Customer - The customer object representation.

SYNOPSIS

my $customer = Peace::Model::Customer->new(
 secret_bcrypt => $secret_bcrypt
);

DESCRIPTION

Describes a customer of Peace capable of buy applications.

INSTANCE METHODS

Peace::Model::Customer implements the following instance methods:

new

my $customer = Peace::Model::Customer->new(
  uuid          => $uuid,          # optional
  date_creation => $date_creation, # optional
  secret_bcrypt => $secret_bcrypt,
  stripe_id     => $stripe_id,     # optional
);

Instances a new Peace::Model::Customer.

METHODS

Peace::Model::Customer implements the following methods:

uuid

my $uuid = $customer->uuid;

$customer->uuid($uuid);

Allows to retrieve and set the customer uuid.

date_creation

my $date_creation = $customer->date_creation;

$customer->date_creation($date_creation);

Allows to retrieve and set the customer date_creation.

secret_bcrypt

my $secret_bcrypt = $customer->secret_bcrypt;

$customer->secret_bcrypt($secret_bcrypt);

Allows to retrieve and set the customer secret_bcrypt.

stripe_id

my $stripe_id = $customer->stripe_id;

$customer->stripe_id($stripe_id);

SEE ALSO

Peace::DAO::Customer