Repository: fossasia/open-event-server

Issue:
Adds is_billing_enabled to order object
<!--
(Thanks for sending a pull request! Please make sure you click the link above to view the contribution guidelines, then fill out the blanks below.)
-->
<!-- Add the issue number that is fixed by this PR (In the form Fixes #123) -->

Fixes #5617 

#### Checklist

- [x] I have read the [Contribution & Best practices Guide](https://blog.fossasia.org/open-source-developer-guide-and-best-practices-at-fossasia) and my PR follows them.
- [x] My branch is up-to-date with the Upstream `development` branch.
- [x] The unit tests pass locally with my changes <!-- use `nosetests tests/all` to run all the tests -->
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] I have added necessary documentation (if appropriate)
<!-- If an existing function does not have a docstring, please add one -->
- [ ] All the functions created/modified in this PR contain relevant docstrings.

#### Short description of what this resolves:
In redesigning the order review page, we need to know is billing was enabled for that particular order or not
Currently there is no way to know this

#### Changes proposed in this pull request:

- Adding `isBillingEnabled` field to the `order` can allow us to get this info





Discussion:
# [Codecov](https://codecov.io/gh/fossasia/open-event-server/pull/5620?src=pr&el=h1) Report
> :exclamation: No coverage uploaded for pull request base (`development@2894db2`). [Click here to learn what that means](https://docs.codecov.io/docs/error-reference#section-missing-base-commit).
> The diff coverage is `100%`.

[![Impacted file tree graph](https://codecov.io/gh/fossasia/open-event-server/pull/5620/graphs/tree.svg?width=650&token=HNBiyBrcBU&height=150&src=pr)](https://codecov.io/gh/fossasia/open-event-server/pull/5620?src=pr&el=tree)

```diff
@@              Coverage Diff               @@
##             development    #5620   +/-   ##
==============================================
  Coverage               ?   63.96%           
==============================================
  Files                  ?      269           
  Lines                  ?    12995           
  Branches               ?        0           
==============================================
  Hits                   ?     8312           
  Misses                 ?     4683           
  Partials               ?        0
```


| [Impacted Files](https://codecov.io/gh/fossasia/open-event-server/pull/5620?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [app/api/schema/orders.py](https://codecov.io/gh/fossasia/open-event-server/pull/5620/diff?src=pr&el=tree#diff-YXBwL2FwaS9zY2hlbWEvb3JkZXJzLnB5) | `88.88% <100%> (ø)` | |
| [app/models/order.py](https://codecov.io/gh/fossasia/open-event-server/pull/5620/diff?src=pr&el=tree#diff-YXBwL21vZGVscy9vcmRlci5weQ==) | `91.75% <100%> (ø)` | |

------

[Continue to review full report at Codecov](https://codecov.io/gh/fossasia/open-event-server/pull/5620?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/fossasia/open-event-server/pull/5620?src=pr&el=footer). Last update [2894db2...684d1cb](https://codecov.io/gh/fossasia/open-event-server/pull/5620?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).

@CosmicCoder96 @iamareebjamal please review again

Resolving patch:
diff --git a/migrations/versions/565ea5bc3937_.py b/migrations/versions/565ea5bc3937_.py
--- a/migrations/versions/565ea5bc3937_.py
+++ b/migrations/versions/565ea5bc3937_.py
@@ -17,7 +17,7 @@
 
 def upgrade():
     # ### commands auto generated by Alembic - please adjust! ###
-    op.add_column('orders', sa.Column('is_billing_enabled', sa.Boolean()), server_default='False')
+    op.add_column('orders', sa.Column('is_billing_enabled', sa.Boolean(), server_default='False'))
     # ### end Alembic commands ###
 
 


Test patch: