diff --git a/doc/lib/Peace.pm.html b/doc/lib/Peace.pm.html new file mode 100644 index 0000000..e6805e3 --- /dev/null +++ b/doc/lib/Peace.pm.html @@ -0,0 +1,37 @@ + + + +
+Peace - Onlie GNU/Linux flatpak apps store.
+ +./peace
+
+Peace is the server backend for flatstore a shop to be able to sell or buy flatpak applications.
+ + + + + + + diff --git a/doc/lib/Peace/Controller/User.pm.html b/doc/lib/Peace/Controller/User.pm.html new file mode 100644 index 0000000..21f9514 --- /dev/null +++ b/doc/lib/Peace/Controller/User.pm.html @@ -0,0 +1,19 @@ + + + + +Peace::DB - Database handler generator for the Peace shop.
+ +my $config =
+ $self->plugin(
+ JSONConfig => {
+ file => "$home/.config/peace/peace.conf"
+ }
+ );
+my $dbh = Peace::DB->dbh( config => $config );
+
+This module helps to recover a database handle and runs the migrations automatically when doing so.
+ +Peace::DB implements the following functions:
+ +Recovers a database handle, requires the config of the app as its parameter.
+ +my $dbh = Peace::DB->dbh( config => $config );
+
+Runs the migrations manually.
+ +Peace::DB->run_migrations($dbh);
+
+Peace::Model::Customer - The customer object representation
+ +my $customer = Peace::Model::Customer->new(
+ secret_bcrypt => $secret_bcrypt
+);
+
+Describes a customer of Peace capable of buy applications.
+ +Peace::Model::Customer implements the following instance methods:
+ +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.
+ +Peace::Model::Customer implements the following methods:
+ +my $uuid = $customer->uuid;
+
+$customer->uuid($uuid);
+
+Allows to retrive and set the customer uuid.
+ +my $date_creation = $customer->date_creation;
+
+$customer->date_creation($date_creation);
+
+Allows to retrive and set the customer date_creation.
+ +my $secret_bcrypt = $customer->secret_bcrypt;
+
+$customer->secret_bcrypt($secret_bcrypt);
+
+Allows to retrive and set the customer secret_bcrypt.
+ +my $stripe_id = $customer->stripe_id;
+
+$customer->stripe_id($stripe_id);
+
+