Skip to content

Commit

Permalink
Added state 'created' for Invoice model.
Browse files Browse the repository at this point in the history
  • Loading branch information
adnedelcu committed Feb 16, 2023
1 parent 637569d commit 5b02896
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/Model/Invoice.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Name | Type | Description | Notes
**customer** | **string** | Customer handle |
**subscription** | **string** | Subscription handle, will be null for a one-time customer invoice | [optional]
**plan** | **string** | Subscription plan handle for the plan used to automatically create the invoice or the case that an on-demand subscription invoice has been created that should include a plan order line | [optional]
**state** | **string** | The invoice state one of the following: `pending`, `dunning`, `settled`, `cancelled`, `authorized`, `failed` |
**state** | **string** | The invoice state one of the following: `created`, `pending`, `dunning`, `settled`, `cancelled`, `authorized`, `failed` |
**type** | **string** | The type of invoice: `s` - subscription recurring, `so` - subscription one-time, `soi` - subscription one-time instant, `co` - customer one-time, `ch` - charge |
**amount** | **int** | The invoice amount including VAT |
**number** | **int** | Sequential invoice number |
Expand Down
2 changes: 2 additions & 0 deletions lib/Model/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ public static function getters()
return self::$getters;
}

const STATE_CREATED = 'created';
const STATE_PENDING = 'pending';
const STATE_DUNNING = 'dunning';
const STATE_SETTLED = 'settled';
Expand All @@ -322,6 +323,7 @@ public static function getters()
public function getStateAllowableValues()
{
return [
self::STATE_CREATED,
self::STATE_PENDING,
self::STATE_DUNNING,
self::STATE_SETTLED,
Expand Down

0 comments on commit 5b02896

Please sign in to comment.