Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LITE-30645] - Added product_id #34

Merged
merged 1 commit into from
Aug 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions connect_ext_datalake/services/payloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,8 @@ def prepare_tc_data(client: ConnectClient, tc: dict):
def prepare_tcr_data(tcr: dict):
tcr["activation_link"] = tcr.get('activation', {}).get('link', None)
tcr["name"] = f"Tier Configuration Request for {tcr['configuration']['account']['id']}."
tcr['tier_account_id'] = tcr['configuration']['account']['id']
tcr['product_id'] = tcr['configuration']['product']['id']
tcr["tier_level"] = tcr['configuration']['tier_level']
tcr["published_at"] = datetime.now(tz=timezone(timedelta(hours=0))).isoformat(
timespec='seconds'
Expand All @@ -305,6 +307,7 @@ def prepare_tcr_data(tcr: dict):
def prepare_ff_request_data(ff_request: dict):
ff_request["name"] = f"Fulfillment request for asset {ff_request['asset']['id']}."
ff_request["asset_id"] = ff_request['asset']['id']
ff_request['product_id'] = ff_request['asset']['product']['id']
ff_request["asset_external_id"] = ff_request['asset']['external_id']
ff_request["asset_external_uid"] = ff_request['asset']['external_uid']
ff_request["activation_link"] = ff_request.get('params_form_url', None)
Expand Down
Loading