-
Notifications
You must be signed in to change notification settings - Fork 3
MT-21887: Update account billing usage for marketing plan #39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -874,7 +874,7 @@ paths: | |
| get: | ||
| operationId: getAccountBillingUsage | ||
| summary: Get current billing cycle usage | ||
| description: Get current billing cycle usage for Email Sandbox and Email Sending (Email API/SMTP). | ||
| description: Get current billing cycle usage for Email Sandbox, Email Sending (Email API/SMTP), and Email Campaigns. | ||
| tags: | ||
| - Billing | ||
| x-codeSamples: | ||
|
|
@@ -946,7 +946,7 @@ paths: | |
| var response = client.generalApi().billing().getCurrentBillingCycleUsage(accountId); | ||
| responses: | ||
| '200': | ||
| description: Returns an object with current billing cycle usage for Sandbox and Email Sending (Email API/SMTP) if available. | ||
| description: Returns an object with current billing cycle usage for Sandbox, Email Sending (Email API/SMTP), and Email Campaigns if available. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use official product naming: "Email Marketing" instead of "Email Campaigns". The response description should use "Email Marketing" (or shortened to "Marketing") instead of "Email Campaigns" to align with official Mailtrap product naming. 📝 Proposed fix- description: Returns an object with current billing cycle usage for Sandbox, Email Sending (Email API/SMTP), and Email Campaigns if available.
+ description: Returns an object with current billing cycle usage for Sandbox, Email Sending (Email API/SMTP), and Email Marketing if available.As per coding guidelines: Use official product naming: 'Email Marketing' (can shorten to 'Marketing'). 🤖 Prompt for AI Agents |
||
| content: | ||
| application/json: | ||
| schema: | ||
|
|
@@ -1004,6 +1004,24 @@ paths: | |
| type: integer | ||
| limit: | ||
| type: integer | ||
| marketing: | ||
| type: object | ||
| properties: | ||
| plan: | ||
| type: object | ||
| properties: | ||
| name: | ||
| type: string | ||
| usage: | ||
| type: object | ||
| properties: | ||
| sent_messages_count: | ||
| type: object | ||
| properties: | ||
| current: | ||
| type: integer | ||
| limit: | ||
| type: integer | ||
| example: | ||
| billing: | ||
| cycle_start: '2024-02-15T21:11:59.624Z' | ||
|
|
@@ -1025,6 +1043,13 @@ paths: | |
| sent_messages_count: | ||
| current: 6789 | ||
| limit: 10000 | ||
| marketing: | ||
| plan: | ||
| name: Marketing Pro | ||
| usage: | ||
| sent_messages_count: | ||
| current: 1500 | ||
| limit: 10000 | ||
| '401': | ||
| $ref: '#/components/responses/UNAUTHENTICATED' | ||
| '403': | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use official product naming: "Email Marketing" instead of "Email Campaigns".
The operation description should use "Email Marketing" (or shortened to "Marketing") instead of "Email Campaigns" to align with official Mailtrap product naming.
📝 Proposed fix
As per coding guidelines: Use official product naming: 'Email Marketing' (can shorten to 'Marketing').
📝 Committable suggestion
🤖 Prompt for AI Agents