Skip to content

Commit

Permalink
Merge pull request #39 from kozakr/master
Browse files Browse the repository at this point in the history
Add createBulkTransactions()
pekral authored Apr 17, 2023

Unverified

This user has not yet uploaded their public signing key.
2 parents b49f620 + faf68b7 commit 33bd0eb
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -75,4 +75,6 @@ For more detailed documentation please visit: https://ecomailczv2.docs.apiary.io

### createNewTransaction

### createBulkTransactions

### triggerAutomation
13 changes: 12 additions & 1 deletion src/Ecomail.php
Original file line number Diff line number Diff line change
@@ -389,6 +389,17 @@ public function createNewTransaction(array $data)
}


/**
* @param array $data Data
* @return array|stdClass|string
*/
public function createBulkTransactions(array $data)
{
$url = $this->joinString('tracker/transaction-bulk');
return $this->post($url, $data);
}


/**
* @param string $transaction_id ID transakce
* @param array $data Data
@@ -399,7 +410,7 @@ public function updateTransaction($transaction_id, array $data)
$url = $this->joinString('tracker/transaction/', $transaction_id);
return $this->put($url, $data);
}

/**
* @param string $transaction_id ID transakce
* @return array

0 comments on commit 33bd0eb

Please sign in to comment.