transaction_offer_id
This commit is contained in:
@@ -32,10 +32,14 @@ class SelectOfferService(BaseService):
|
|||||||
customer_id = validated_data.get("customerId")
|
customer_id = validated_data.get("customerId")
|
||||||
amount = validated_data.get("requestedAmount")
|
amount = validated_data.get("requestedAmount")
|
||||||
product_id = validated_data.get("productId")
|
product_id = validated_data.get("productId")
|
||||||
offer_id = validated_data.get("offerId")
|
transaction_offer_id = validated_data.get("offerId")
|
||||||
transaction_id = validated_data.get("transactionId")
|
transaction_id = validated_data.get("transactionId")
|
||||||
request_id = validated_data.get("requestId")
|
request_id = validated_data.get("requestId")
|
||||||
|
|
||||||
|
offer_id = int(transaction_offer_id[5:]) # The last part is int
|
||||||
|
|
||||||
|
#"offerId": "SAL30001129",
|
||||||
|
|
||||||
if SelectOfferService.validate_account_ownership(
|
if SelectOfferService.validate_account_ownership(
|
||||||
account_id=account_id, customer_id=customer_id
|
account_id=account_id, customer_id=customer_id
|
||||||
):
|
):
|
||||||
@@ -82,7 +86,7 @@ class SelectOfferService(BaseService):
|
|||||||
|
|
||||||
offers = [
|
offers = [
|
||||||
{
|
{
|
||||||
"offerId": offer.offer_id,
|
"offerId": transaction_offer_id,
|
||||||
"productId": product_id,
|
"productId": product_id,
|
||||||
"amount": amount,
|
"amount": amount,
|
||||||
"upfrontPayment": upfront_payment,
|
"upfrontPayment": upfront_payment,
|
||||||
|
|||||||
Reference in New Issue
Block a user