Skip to content

Commit ca33e81

Browse files
feat: add sample3-5 and policy links to campaign create/update
1 parent 3bc956d commit ca33e81

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

plivo/resources/campaign.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,13 @@ def delete(self, campaign_id):
3535
optout_keywords=[optional(of_type(six.text_type))],
3636
optout_message=[optional(of_type(six.text_type))],
3737
help_keywords=[optional(of_type(six.text_type))],
38+
sample3=[optional(of_type(six.text_type))],
39+
sample4=[optional(of_type(six.text_type))],
40+
sample5=[optional(of_type(six.text_type))],
41+
terms_and_conditions_link=[optional(of_type(six.text_type))],
42+
privacy_policy_link=[optional(of_type(six.text_type))],
3843
)
39-
def update(self, campaign_id, reseller_id='', description='', sample1='', sample2='', help_message='', message_flow='', optin_keywords='', optin_message='', optout_keywords='', optout_message='', help_keywords=''):
44+
def update(self, campaign_id, reseller_id='', description='', sample1='', sample2='', sample3='', sample4='', sample5='', help_message='', message_flow='', optin_keywords='', optin_message='', optout_keywords='', optout_message='', help_keywords='', terms_and_conditions_link='', privacy_policy_link=''):
4045

4146
payload = locals()
4247
payload.pop("campaign_id")
@@ -90,7 +95,9 @@ def list(self, brand_id=None, registration_status=None, usecase=None, campaign_s
9095
optout_message=[optional(of_type(six.text_type))],
9196
help_keywords=[optional(of_type(six.text_type))],
9297
url=[optional(of_type(six.text_type))],
93-
method=[optional(of_type(six.text_type))])
98+
method=[optional(of_type(six.text_type))],
99+
terms_and_conditions_link=[optional(of_type(six.text_type))],
100+
privacy_policy_link=[optional(of_type(six.text_type))])
94101
def create(self,
95102
brand_id,
96103
vertical,
@@ -119,7 +126,9 @@ def create(self,
119126
subscriber_help=False,
120127
affiliate_marketing=False,
121128
campaign_alias=None,
122-
sub_usecases=[]):
129+
sub_usecases=[],
130+
terms_and_conditions_link='',
131+
privacy_policy_link=''):
123132
return self.client.request('POST', ('10dlc', 'Campaign'),
124133
to_param_dict(self.create, locals()))
125134

0 commit comments

Comments
 (0)