Skip to content

Commit

Permalink
deprecating pay ncco action (Vonage#245)
Browse files Browse the repository at this point in the history
* deprecating pay ncco action

* removing reference to Pay action from README
  • Loading branch information
maxkahan authored Feb 28, 2023
1 parent 025636a commit 5458a68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,6 @@ Use the builder to construct valid NCCO actions, which are modelled in the SDK a
* Stream
* Input
* Notify
* Pay

### Construct actions

Expand Down
3 changes: 3 additions & 0 deletions src/vonage/ncco_builder/ncco.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
from .input_types import InputTypes
from .pay_prompts import PayPrompts

from deprecated import deprecated


class Ncco:
class Action(BaseModel):
Expand Down Expand Up @@ -171,6 +173,7 @@ class Notify(Action):
def ensure_url_in_list(cls, v):
return Ncco._ensure_object_in_list(v)

@deprecated(version='3.2.3', reason='The Pay NCCO action has been deprecated.')
class Pay(Action):
"""The pay action collects credit card information with DTMF input in a secure (PCI-DSS compliant) way."""

Expand Down

0 comments on commit 5458a68

Please sign in to comment.