File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ def add_credit_card(
113113 def add_payment_method (
114114 stripe_customer_id : str ,
115115 payment_method_reference : str ,
116- priority : Optional [ str ] = "primary" ,
116+ primary_or_secondary : str = "primary" ,
117117 ) -> Dict [str , Any ]:
118118 """Add a Stripe payment method to your EasyPost account.
119119
@@ -127,7 +127,7 @@ def add_payment_method(
127127 "payment_method" : {
128128 "stripe_customer_id" : stripe_customer_id ,
129129 "payment_method_reference" : payment_method_reference ,
130- "priority" : priority ,
130+ "priority" : primary_or_secondary ,
131131 }
132132 }
133133
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ def test_beta_referral_add_payment_method(referral_customer_prod_api_key):
101101 easypost .beta .Referral .add_payment_method (
102102 stripe_customer_id = "cus_123" ,
103103 payment_method_reference = "ba_123" ,
104- priority = "primary" ,
104+ primary_or_secondary = "primary" ,
105105 )
106106
107107 assert str (error .value ) == "Invalid Payment Gateway Reference."
You can’t perform that action at this time.
0 commit comments