Skip to content

Commit

Permalink
Fix bug that error occur when process shipping and handling in Amazon
Browse files Browse the repository at this point in the history
  • Loading branch information
yukihiko-shinoda committed Jan 15, 2024
1 parent c6a8fa3 commit 10b6b50
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ def ensures_not_payment(self) -> bool:

@property
def ensures_not_credit_card(self) -> bool:
return (
not self.credit_card_billing_date and not self.credit_card_billing_amount and not self.credit_card_identity
)
return not self.credit_card_billing_date and not self.credit_card_billing_amount

@property
def is_discount(self) -> bool:
Expand All @@ -93,7 +91,12 @@ def is_payment(self) -> bool:

@property
def is_free_kindle(self) -> bool:
return self.is_digital_order and self.price == 0 and self.ensures_not_credit_card
return (
self.is_digital_order
and self.price == 0
and self.ensures_not_credit_card
and not self.credit_card_identity
)

@property
def is_digital_order(self) -> bool:
Expand Down

0 comments on commit 10b6b50

Please sign in to comment.