Updates for api docs
This commit is contained in:
parent
c30f3e1ebb
commit
5873ebff44
|
|
@ -219,7 +219,6 @@ class SendReminders implements ShouldQueue
|
||||||
nlog('firing email');
|
nlog('firing email');
|
||||||
|
|
||||||
EmailEntity::dispatch($invitation->withoutRelations(), $invitation->company->db, $template)->delay(10);
|
EmailEntity::dispatch($invitation->withoutRelations(), $invitation->company->db, $template)->delay(10);
|
||||||
// event(new InvoiceWasEmailed($invoice->invitations->first(), $invoice->company, Ninja::eventVars(), $template));
|
|
||||||
$invoice->entityEmailEvent($invoice->invitations->first(), $template);
|
$invoice->entityEmailEvent($invoice->invitations->first(), $template);
|
||||||
$invoice->sendEvent(Webhook::EVENT_REMIND_INVOICE, "client");
|
$invoice->sendEvent(Webhook::EVENT_REMIND_INVOICE, "client");
|
||||||
}
|
}
|
||||||
|
|
@ -231,6 +230,7 @@ class SendReminders implements ShouldQueue
|
||||||
if (in_array($template, ['reminder1', 'reminder2', 'reminder3'])) {
|
if (in_array($template, ['reminder1', 'reminder2', 'reminder3'])) {
|
||||||
$invoice->{$template.'_sent'} = now();
|
$invoice->{$template.'_sent'} = now();
|
||||||
}
|
}
|
||||||
|
|
||||||
$invoice->service()->touchReminder($template)->save();
|
$invoice->service()->touchReminder($template)->save();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12275,6 +12275,13 @@ paths:
|
||||||
- $ref: "#/components/parameters/X-API-TOKEN"
|
- $ref: "#/components/parameters/X-API-TOKEN"
|
||||||
- $ref: "#/components/parameters/X-Requested-With"
|
- $ref: "#/components/parameters/X-Requested-With"
|
||||||
- $ref: "#/components/parameters/include"
|
- $ref: "#/components/parameters/include"
|
||||||
|
- name: email_receipt
|
||||||
|
in: query
|
||||||
|
description: |
|
||||||
|
If true, the payment will be emailed to the client. If false, no email will be sent. This will override any other email settings for payments.
|
||||||
|
required: false
|
||||||
|
schema:
|
||||||
|
type: boolean
|
||||||
requestBody:
|
requestBody:
|
||||||
description: "The payment request"
|
description: "The payment request"
|
||||||
required: true
|
required: true
|
||||||
|
|
|
||||||
|
|
@ -89,6 +89,13 @@
|
||||||
- $ref: "#/components/parameters/X-API-TOKEN"
|
- $ref: "#/components/parameters/X-API-TOKEN"
|
||||||
- $ref: "#/components/parameters/X-Requested-With"
|
- $ref: "#/components/parameters/X-Requested-With"
|
||||||
- $ref: "#/components/parameters/include"
|
- $ref: "#/components/parameters/include"
|
||||||
|
- name: email_receipt
|
||||||
|
in: query
|
||||||
|
description: |
|
||||||
|
If true, the payment will be emailed to the client. If false, no email will be sent. This will override any other email settings for payments.
|
||||||
|
required: false
|
||||||
|
schema:
|
||||||
|
type: boolean
|
||||||
requestBody:
|
requestBody:
|
||||||
description: "The payment request"
|
description: "The payment request"
|
||||||
required: true
|
required: true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue