import random
import string


def get_shipping_details_response(order_id, address_id):
    """
    Creates a json response for a shipping details request.

    :param order_id: ID for the transaction.
    :param address_id: Address ID received from Vipps.
    :return: A json response for a shipping details request.
    """
    shipping_details = {
        "addressId": address_id,
        "orderId": order_id,
        "shippingDetails": [
            {
                "isDefault": "N",
                "priority": 1,
                "shippingCost": 30.0,
                "shippingMethod": "postNord",
                "shippingMethodId": "".join(random.choices(string.ascii_lowercase + string.digits, k=6))
            },

            {
                "isDefault": "Y",
                "priority": 2,
                "shippingCost": 30.0,
                "shippingMethod": "Posten",
                "shippingMethodId": "".join(random.choices(string.ascii_lowercase + string.digits, k=6))
            }
        ]
    }
    return shipping_details