def list_for_billing_period_by_department_with_http_info(department_id, billing_period_name, filter:nil, top:nil, skiptoken:nil, custom_headers:nil)
      list_for_billing_period_by_department_async(department_id, billing_period_name, filter:filter, top:top, skiptoken:skiptoken, custom_headers:custom_headers).value!
    end
def list_for_billing_period_by_department_with_http_info(department_id, billing_period_name, filter:nil, top:nil, skiptoken:nil, custom_headers:nil)
      list_for_billing_period_by_department_async(department_id, billing_period_name, filter:filter, top:top, skiptoken:skiptoken, custom_headers:custom_headers).value!
    end
Lists the marketplaces for a scope by billing period and departmentId.
 Marketplaces are available via this API only for May 1, 2014 or later.

 @param department_id [String] Department ID
 @param billing_period_name [String] Billing Period Name.
 @param filter [String] May be used to filter marketplaces by
 properties/usageEnd (Utc time), properties/usageStart (Utc time),
 properties/resourceGroup, properties/instanceName or properties/instanceId.
 The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not
 currently support 'ne', 'or', or 'not'.
 @param top [Integer] May be used to limit the number of results to the most
 recent N marketplaces.
 @param skiptoken [String] Skiptoken is only used if a previous operation
 returned a partial result. If a previous response contains a nextLink
 element, the value of the nextLink element will include a skiptoken parameter
 that specifies a starting point to use for subsequent calls.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [MsRestAzure::AzureOperationResponse] HTTP response information.