Skip to content

Commit

Permalink
doc: add comments about DTO
Browse files Browse the repository at this point in the history
  • Loading branch information
glaubersilva committed Sep 6, 2024
1 parent 6944f85 commit f66bc2c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
namespace GiveAddon\OffSiteGateway\DataTransferObjects;

/**
* This Data Transfer Object class converts the gateway API response (when creating a new payment) to a local
* object where we know what properties can be accessed. The fromArray() method is where the conversion from
* the gateway API response to an object of this class is made. You should edit this method according to the
* gateway you are integrating since the API response probably should differ.
*
* @unreleased
*/
class OffSiteGatewayPayment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
namespace GiveAddon\OffSiteGateway\DataTransferObjects;

/**
* This Data Transfer Object class converts the gateway webhook notification to a local object where we know
* what properties can be accessed. The fromRequest() method is where the conversion from the gateway webhook
* notification to an object of this class is made. You should edit this method according to the gateway you
* are integrating since the webhook notification attributes probably should differ.
*
* @unreleased
*/
class OffSiteGatewayWebhookNotification
Expand Down

0 comments on commit f66bc2c

Please sign in to comment.