Skip to content

Commit

Permalink
Merge pull request #299 from tungleduyxyz/update_admin_apis
Browse files Browse the repository at this point in the history
Update Admin APIs
  • Loading branch information
reshmabidikar authored Mar 10, 2024
2 parents 2f3b9f5 + c50ecce commit b4eb0c4
Showing 1 changed file with 38 additions and 11 deletions.
49 changes: 38 additions & 11 deletions source/includes/_admin.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,16 @@ adminApi.triggerInvoiceGenerationForParkedAccounts(offset, limit, NULL_PLUGIN_PR
ofset = 0
limit = 100
user = "demo"
reason = nil
comment = nil
plugin_properties = ["key%3Dvalue"]

KillBillClient::Model::Admin.trigger_invoice_generation_for_parked_accounts(ofset,
limit,
plugin_properties,
user,
reason,
comment,
options)
```

Expand Down Expand Up @@ -186,20 +192,24 @@ adminApi.updatePaymentTransactionState(paymentId,
```

```ruby
user = "demo"
created_by = "demo"
reason = nil
comment = nil

payment_id = "6cb944a-b308-4488-b046-4b4d61d375a6"
transaction_id = "8gb944a-b308-4488-b046-4b4d61d375r3"
body = AdminPayment(transaction_status='PAYMENT_FAILURE')

adminApi.update_payment_transaction_state(payment_id,
payment_transaction_id,
body,
created_by='demo',
reason='reason',
comment='comment')
transaction_status = "PAYMENT_FAILURE"
payment_state_param = {
"lastSuccessPaymentState" => "AUTH_FAILED",
"currentPaymentStateName" => "AUTH_FAILED"
}
KillBillClient::Model::Admin.fix_transaction_state(payment_id,
transaction_id,
transaction_status,
payment_state_param,
created_by,
reason,
comment,
options_for_klient)
```

```python
Expand Down Expand Up @@ -608,7 +618,24 @@ adminApi.getQueueEntries(accountId,

```ruby
account_id = "864c1418-e768-4cd5-a0db-67537144b685"
KillBillClient::Model::Admin.get_queues_entries(account_id, options)
queue_name = ''
service_name = ''
with_history = true
min_date = ''
max_date = ''
with_in_processing = true
with_notifications = true
outputStream = ''
KillBillClient::Model::Admin.get_queues_entries(account_id,
queue_name,
service_name,
with_history,
min_date,
max_date,
with_in_processing,
with_notifications,
outputStream,
options)
```

```python
Expand Down

0 comments on commit b4eb0c4

Please sign in to comment.