Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

Commit

Permalink
Change method order 'bind'
Browse files Browse the repository at this point in the history
  • Loading branch information
vragovR committed Mar 27, 2018
1 parent b8a6a68 commit 12bdf6f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ $order = $client->getOrderApi()->escalate(1, [

# Bind card to order
$order = $client->getOrderApi()->bind(1, 1, [
'card_id' => 1,
'supplier_payout_card_id' => 1,
]);
```

Expand All @@ -125,7 +125,7 @@ $setting = $client->getSettingApi()->edit([
### 3.4: Usage Calculate Api
```php
# Calculate
$setting = $client->getCalculateApi()->calculate([
$calculate = $client->getCalculateApi()->calculate([
'price' => 1000,
'service_cost_payer' => Order::PAYER_HALF, // or Order::PAYER_CONSUMER or Order::PAYER_SUPPLIER
]);
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vragovr/safecrow-api",
"description": "SafeCrow API v3 Client",
"version": "1.0.3",
"version": "1.0.4",
"type": "library",
"keywords": [
"http",
Expand Down
4 changes: 2 additions & 2 deletions src/Api/OrderApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ public function bind(int $userId, int $orderId, array $params) : Order
$resolver = new OptionsResolver();
$resolver
->setRequired([
'card_id',
'supplier_payout_card_id',
])
->setAllowedTypes('card_id', 'int');
->setAllowedTypes('supplier_payout_card_id', 'int');

$params = $resolver->resolve($params);

Expand Down

0 comments on commit 12bdf6f

Please sign in to comment.