Skip to content
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

Feat(invoice): Feat add skip zero invoices #268

Merged
merged 4 commits into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions openapi.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions src/schemas/CustomerBaseObject.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,18 @@ properties:
format: 'date-time'
example: '2022-04-29T08:59:51Z'
description: The date of the customer update, represented in ISO 8601 datetime format and expressed in Coordinated Universal Time (UTC). The update_date provides a standardized and internationally recognized timestamp for when the customer object was updated
finalize_zero_amount_invoice:
type: string
enum:
- inherit
- skip
- finalize
example: 'inherit'
description: |-
Specifies how invoices with a zero total amount should be handled:
- `inherit`: (Default) Follows the organization-level configuration.
- `finalize`: Invoices are issued and finalized even if the total amount is zero.
- `skip`: Invoices with a total amount of zero are not finalized.
billing_configuration:
$ref: './CustomerBillingConfiguration.yaml'
shipping_address:
Expand Down
12 changes: 12 additions & 0 deletions src/schemas/CustomerCreateInput.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,18 @@ properties:
example: 30
description: The net payment term, expressed in days, specifies the duration within which a customer is expected to remit payment after the invoice is finalized.
nullable: true
finalize_zero_amount_invoice:
type: string
enum:
- inherit
- skip
- finalize
example: 'inherit'
description: |-
Specifies how invoices with a zero total amount should be handled:
- `inherit`: (Default) Follows the organization-level configuration.
- `finalize`: Invoices are issued and finalized even if the total amount is zero.
- `skip`: Invoices with a total amount of zero are not finalized.
billing_configuration:
$ref: './CustomerBillingConfiguration.yaml'
shipping_address:
Expand Down
4 changes: 4 additions & 0 deletions src/schemas/OrganizationObject.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,7 @@ properties:
description: List of default organization taxes
items:
$ref: './TaxObject.yaml'
finalize_zero_amount_invoice:
type: boolean
example: false
description: Indicates whether invoices with a zero total amount should be finalized. If set to true, zero amount invoices will be finalized. If set to false, zero amount invoices will not be finalized.
4 changes: 4 additions & 0 deletions src/schemas/OrganizationUpdateInput.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,7 @@ properties:
enum: [invoice.finalized, credit_note.created]
billing_configuration:
$ref: './OrganizationBillingConfiguration.yaml'
finalize_zero_amount_invoice:
type: boolean
example: false
description: Determines whether invoices with a zero total amount should be finalized. If set to true, zero amount invoices will be finalized. If set to false, zero amount invoices will not be finalized.
Loading