Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
NoelLH committed Jan 7, 2022
0 parents commit 082f370
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
vendor/

.idea/
*.iml
26 changes: 26 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "thebiggive/messages",
"description": "Shared message / model classes for cross-service communication",
"type": "project",
"minimum-stability": "stable",
"prefer-stable": true,
"require": {
"php": "^8.0.2"
},
"config": {
"optimize-autoloader": true,
"sort-packages": true
},
"autoload": {
"psr-4": {
"Messages\\": "src/"
}
},
"license": "MIT",
"authors": [
{
"name": "Noel Light-Hilary",
"email": "[email protected]"
}
]
}
20 changes: 20 additions & 0 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions src/Donation.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

namespace Messages;

/**
* For now, this is just a copy of `ClaimBot\Messenger\Donation`. We may want to think
* about abstracting the model out to a shared dependency later.
*/
class Donation
{
public string $id;

/** @var string Donation date, YYYY-MM-DD. */
public string $donation_date;

public string $title;
public string $first_name;
public string $last_name;
public string $house_no;
public string $postcode;
public bool $overseas = false;
public float $amount;
public bool $sponsored = false;
public string $org_hmrc_ref;
public string $org_name;
}

0 comments on commit 082f370

Please sign in to comment.