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(
113
113
def add_payment_method (
114
114
stripe_customer_id : str ,
115
115
payment_method_reference : str ,
116
- priority : Optional [ str ] = "primary" ,
116
+ primary_or_secondary : str = "primary" ,
117
117
) -> Dict [str , Any ]:
118
118
"""Add a Stripe payment method to your EasyPost account.
119
119
@@ -127,7 +127,7 @@ def add_payment_method(
127
127
"payment_method" : {
128
128
"stripe_customer_id" : stripe_customer_id ,
129
129
"payment_method_reference" : payment_method_reference ,
130
- "priority" : priority ,
130
+ "priority" : primary_or_secondary ,
131
131
}
132
132
}
133
133
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):
101
101
easypost .beta .Referral .add_payment_method (
102
102
stripe_customer_id = "cus_123" ,
103
103
payment_method_reference = "ba_123" ,
104
- priority = "primary" ,
104
+ primary_or_secondary = "primary" ,
105
105
)
106
106
107
107
assert str (error .value ) == "Invalid Payment Gateway Reference."
You can’t perform that action at this time.
0 commit comments