Skip to content

Commit 3f8fa69

Browse files
committed
fix: rename priority param to primary_or_secondary
1 parent 657c801 commit 3f8fa69

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

easypost/beta/referral.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

tests/test_beta_referral.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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."

0 commit comments

Comments
 (0)