File tree Expand file tree Collapse file tree 3 files changed +14
-6
lines changed
src/Gateways/Asaas/Resources/Charge Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ KN='\033[0m'
4
4
BBlue=' \033[1;34m'
5
5
BRed=' \033[1;31m'
6
6
7
- REGEX_ISSUE_ID=" [a-zA-Z0-9,._-]+-[ 0-9]+"
7
+ REGEX_ISSUE_ID=" [0-9]+"
8
8
9
9
BRANCH_NAME=$( git symbolic-ref --short HEAD)
10
10
ISSUE_ID=$( echo " $BRANCH_NAME " | grep -o -E " $REGEX_ISSUE_ID " )
@@ -21,4 +21,4 @@ case "$COMMIT_MESSAGE" in
21
21
;;
22
22
esac
23
23
24
- echo " $ISSUE_ID : $COMMIT_MESSAGE " > " $1 "
24
+ echo " PHPAY- $ISSUE_ID : $COMMIT_MESSAGE " > " $1 "
Original file line number Diff line number Diff line change 29
29
*
30
30
* @return array charges
31
31
*/
32
- $ chargeCreated = $ phpay
32
+ $ phpay
33
33
->charge ($ charge )
34
34
->setCustomer ($ customer )
35
35
->create ();
52
52
->charge ()
53
53
->getAll ();
54
54
55
+ /**
56
+ * get all charges with filters
57
+ *
58
+ * @return array charges
59
+ */
60
+ $ phpay
61
+ ->charge ()
62
+ ->setFilters (['limit ' => 5 ])
63
+ ->getAll ();
64
+
55
65
/**
56
66
* update charge
57
67
*
Original file line number Diff line number Diff line change @@ -91,9 +91,7 @@ public function find(string $id): array
91
91
*/
92
92
public function getAll (): array
93
93
{
94
- return $ this ->get ('payments ' , [
95
- 'query ' => $ this ->filter ,
96
- ]);
94
+ return $ this ->get ('payments ' , $ this ->filter );
97
95
}
98
96
99
97
/**
You can’t perform that action at this time.
0 commit comments